From 06ada7a594c376fd95213c1c9be514251424949e Mon Sep 17 00:00:00 2001 From: thelamer Date: Mon, 10 Apr 2023 13:15:36 -0700 Subject: [PATCH] update subfolder confs that point to websockify for kasmvnc based images --- boinc.subfolder.conf.sample | 24 ++++++++++++++++++++++++ calibre.subfolder.conf.sample | 24 ++++++++++++++++++++++++ 2 files changed, 48 insertions(+) diff --git a/boinc.subfolder.conf.sample b/boinc.subfolder.conf.sample index 34184e1..28f9e2d 100644 --- a/boinc.subfolder.conf.sample +++ b/boinc.subfolder.conf.sample @@ -30,3 +30,27 @@ location ^~ /boinc/ { proxy_buffering off; } + +location ^~ /websockify { + # enable the next two lines for http auth + #auth_basic "Restricted"; + #auth_basic_user_file /config/nginx/.htpasswd; + + # enable for ldap auth (requires ldap-server.conf in the server block) + #include /config/nginx/ldap-location.conf; + + # enable for Authelia (requires authelia-server.conf in the server block) + #include /config/nginx/authelia-location.conf; + + # enable for Authentik (requires authentik-server.conf in the server block) + #include /config/nginx/authentik-location.conf; + + include /config/nginx/proxy.conf; + include /config/nginx/resolver.conf; + set $upstream_app boinc; + set $upstream_port 6901; + set $upstream_proto http; + proxy_pass $upstream_proto://$upstream_app:$upstream_port; + + proxy_buffering off; +} diff --git a/calibre.subfolder.conf.sample b/calibre.subfolder.conf.sample index 21cc09b..539507f 100644 --- a/calibre.subfolder.conf.sample +++ b/calibre.subfolder.conf.sample @@ -59,3 +59,27 @@ location ^~ /content-server/ { proxy_pass $upstream_proto://$upstream_app:$upstream_port; } + +location ^~ /websockify { + # enable the next two lines for http auth + #auth_basic "Restricted"; + #auth_basic_user_file /config/nginx/.htpasswd; + + # enable for ldap auth (requires ldap-server.conf in the server block) + #include /config/nginx/ldap-location.conf; + + # enable for Authelia (requires authelia-server.conf in the server block) + #include /config/nginx/authelia-location.conf; + + # enable for Authentik (requires authentik-server.conf in the server block) + #include /config/nginx/authentik-location.conf; + + include /config/nginx/proxy.conf; + include /config/nginx/resolver.conf; + set $upstream_app calibre; + set $upstream_port 6901; + set $upstream_proto http; + proxy_pass $upstream_proto://$upstream_app:$upstream_port; + + proxy_buffering off; +}