mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2025-10-04 05:41:58 +08:00
42 lines
No EOL
1.3 KiB
Text
42 lines
No EOL
1.3 KiB
Text
server {
|
|
listen 8443 ssl;
|
|
ssl_certificate /etc/ssl/certs/ssl-cert-snakeoil.pem;
|
|
ssl_certificate_key /etc/ssl/private/ssl-cert-snakeoil.key;
|
|
|
|
location / {
|
|
proxy_pass http://127.0.0.1:5173;
|
|
}
|
|
|
|
location /api/ {
|
|
proxy_pass https://127.0.0.1:6901;
|
|
}
|
|
|
|
location /websockify {
|
|
# 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 KasmVNC using SSL
|
|
#proxy_pass https://127.0.0.1:6901;
|
|
# Proxy to KasmVNC without SSL
|
|
proxy_pass http://127.0.0.1:6901;
|
|
}
|
|
} |