Integrate Guacamole with exohub

This commit is contained in:
Anthony Wang 2021-11-23 12:18:04 -06:00
parent 434d521312
commit db089b2b82
Signed by untrusted user: a
GPG key ID: BC96B00AEC5F2D76
2 changed files with 6 additions and 5 deletions

View file

@ -13,7 +13,6 @@ server {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
proxy_cookie_path /guacamole/ /new-path/;
access_log off;
}
}
@ -36,7 +35,6 @@ server {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
proxy_cookie_path /guacamole/ /new-path/;
access_log off;
}
}

View file

@ -7,15 +7,18 @@ server {
ssl_certificate /etc/letsencrypt/live/exozy.me/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/exozy.me/privkey.pem;
# Guacamole
location /desk/ {
location ~ ^/user/(.*)/desk/(.*)$ {
return 301 /hub/desk/$2;
}
location /hub/desk/ {
proxy_pass http://127.0.0.1:11080/guacamole/;
proxy_buffering off;
proxy_http_version 1.1;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
proxy_cookie_path /guacamole/ /new-path/;
proxy_cookie_path /guacamole/ /hub/desk/;
access_log off;
}