forked from exozyme/nginx
Move vnc stuff to root domain
This commit is contained in:
parent
2097fa1773
commit
1d26a43b34
2 changed files with 23 additions and 31 deletions
23
exozyme.conf
23
exozyme.conf
|
@ -1,3 +1,7 @@
|
|||
upstream vnc_proxy {
|
||||
server 127.0.0.1:6080;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80 default_server;
|
||||
listen [::]:80 default_server;
|
||||
|
@ -24,6 +28,25 @@ server {
|
|||
return 301 https://social.exozy.me$request_uri;
|
||||
}
|
||||
|
||||
location /vncws {
|
||||
index vnc.html;
|
||||
alias /usr/share/webapps/novnc/;
|
||||
try_files $uri $uri/ /vnc.html;
|
||||
}
|
||||
|
||||
location /websockify {
|
||||
proxy_http_version 1.1;
|
||||
proxy_pass http://vnc_proxy/;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
|
||||
# VNC connection timeout
|
||||
proxy_read_timeout 61s;
|
||||
|
||||
# Disable cache
|
||||
proxy_buffering off;
|
||||
}
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ =404;
|
||||
}
|
||||
|
|
31
novnc.conf
31
novnc.conf
|
@ -1,31 +0,0 @@
|
|||
upstream vnc_proxy {
|
||||
server 127.0.0.1:6080;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl http2;
|
||||
listen [::]:443 ssl http2;
|
||||
server_name client.exozy.me;
|
||||
|
||||
ssl_certificate /etc/letsencrypt/live/exozy.me/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/exozy.me/privkey.pem;
|
||||
|
||||
location /vncws {
|
||||
index vnc.html;
|
||||
alias /usr/share/webapps/novnc/;
|
||||
try_files $uri $uri/ /vnc.html;
|
||||
}
|
||||
|
||||
location /websockify {
|
||||
proxy_http_version 1.1;
|
||||
proxy_pass http://vnc_proxy/;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
|
||||
# VNC connection timeout
|
||||
proxy_read_timeout 61s;
|
||||
|
||||
# Disable cache
|
||||
proxy_buffering off;
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue