-
Notifications
You must be signed in to change notification settings - Fork 172
Expand file tree
/
Copy pathdefault_site.conf
More file actions
41 lines (33 loc) · 1.09 KB
/
Copy pathdefault_site.conf
File metadata and controls
41 lines (33 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# This is a default site configuration.
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
server {
listen 5800 ssl default_server;
listen [::]:5800 ssl default_server;
# Path to certificate files.
ssl_certificate /config/certs/web-fullchain.pem;
ssl_certificate_key /config/certs/web-privkey.pem;
# Path of the file with Diffie-Hellman parameters for EDH ciphers.
ssl_dhparam /config/certs/dhparam.pem;
# Redirect HTTP traffic.
# https://serverfault.com/a/664936
error_page 497 301 =307 https://$http_host$request_uri;
root /opt/novnc;
index index.html;
location /websockify {
proxy_pass http://127.0.0.1:5901;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_read_timeout 86400;
}
# Access to favicons.
location ~* ^/(browserconfig.xml|manifest.json|safari-pinned-tab.svg|((favicon|apple-touch-icon|android-chrome|mstile)(.*)\.(ico|png)))$ {
root /opt/novnc/images/icons;
# Uncomment if access to favicon.ico generates too many logs.
#log_not_found off;
#access_log off;
}
}