Skip to content

Commit 139b82f

Browse files
authored
Merge pull request #648 from linuxserver/webtop-subfolder
2 parents 88eb33a + 955db01 commit 139b82f

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

webtop.subfolder.conf.sample

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
## Version 2024/02/14
2+
# make sure that your webtop container is named webtop
3+
# make sure that webtop is set to work with the base url /webtop/
4+
# works with any KasmVNC based image
5+
6+
location ^~ /webtop {
7+
# enable the next two lines for http auth
8+
#auth_basic "Restricted";
9+
#auth_basic_user_file /config/nginx/.htpasswd;
10+
11+
# enable for ldap auth (requires ldap-server.conf in the server block)
12+
#include /config/nginx/ldap-location.conf;
13+
14+
# enable for Authelia (requires authelia-server.conf in the server block)
15+
#include /config/nginx/authelia-location.conf;
16+
17+
# enable for Authentik (requires authentik-server.conf in the server block)
18+
#include /config/nginx/authentik-location.conf;
19+
20+
include /config/nginx/proxy.conf;
21+
include /config/nginx/resolver.conf;
22+
set $upstream_app webtop;
23+
set $upstream_port 3000;
24+
set $upstream_proto http;
25+
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
26+
27+
proxy_buffering off;
28+
29+
}

0 commit comments

Comments
 (0)