proxy pt.2
This commit is contained in:
parent
65d3a5c662
commit
b0950b8d70
2 changed files with 3 additions and 41 deletions
|
@ -1,41 +0,0 @@
|
|||
server {
|
||||
server_name kasm.neo.faulty.nl;
|
||||
access_log /var/log/nginx/access.log vhost;
|
||||
listen 443 ssl http2 ;
|
||||
ssl_session_timeout 5m;
|
||||
ssl_session_cache shared:SSL:50m;
|
||||
ssl_session_tickets off;
|
||||
ssl_certificate /etc/nginx/certs/kasm.neo.faulty.nl.crt;
|
||||
ssl_certificate_key /etc/nginx/certs/kasm.neo.faulty.nl.key;
|
||||
ssl_dhparam /etc/nginx/certs/kasm.neo.faulty.nl.dhparam.pem;
|
||||
ssl_stapling on;
|
||||
ssl_stapling_verify on;
|
||||
ssl_trusted_certificate /etc/nginx/certs/kasm.neo.faulty.nl.chain.pem;
|
||||
|
||||
location / {
|
||||
# The following configurations must be configured when proxying to Kasm Workspaces
|
||||
|
||||
# WebSocket Support
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
|
||||
# Host and X headers
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
|
||||
# Connectivity Options
|
||||
proxy_http_version 1.1;
|
||||
proxy_read_timeout 1800s;
|
||||
proxy_send_timeout 1800s;
|
||||
proxy_connect_timeout 1800s;
|
||||
proxy_buffering off;
|
||||
|
||||
# Allow large requests to support file uploads to sessions
|
||||
client_max_body_size 10M;
|
||||
|
||||
# Proxy to Kasm Workspaces running locally on 8443 using ssl
|
||||
proxy_pass https://kasm:8443 ;
|
||||
}
|
||||
}
|
|
@ -167,7 +167,10 @@ services:
|
|||
environment:
|
||||
- KASM_PORT=8443
|
||||
- TZ=Europe/London
|
||||
- VIRTUAL_HOST=kasm.neo.faulty.nl
|
||||
- LETSENCRYPT_HOST=kasm.neo.faulty.nl
|
||||
- VIRTUAL_PORT=8443
|
||||
- VIRTUAL_PROTO=https
|
||||
volumes:
|
||||
- /srv/kasm/data:/opt
|
||||
- /srv/kasm/other/profiles:/profiles #optional
|
||||
|
|
Reference in a new issue