41 lines
No EOL
1.4 KiB
Text
41 lines
No EOL
1.4 KiB
Text
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 ;
|
|
}
|
|
} |