Skip to content

Commit 08a15c8

Browse files
committed
add kasm subdomain sample
1 parent 3e4c4c2 commit 08a15c8

1 file changed

Lines changed: 80 additions & 0 deletions

File tree

kasm.subdomain.conf.sample

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
# This configuration assumes 8443 with the environment variable -e KASM_PORT=8443 set adjust to your needs
2+
# Post installation you will need to access Kasm > Admin > Zones > default zone (edit) and modify
3+
# Proxy Port to 0 as documented https://www.kasmweb.com/docs/latest/how_to/reverse_proxy.html#update-zones
4+
server {
5+
listen 443 ssl;
6+
listen [::]:443 ssl;
7+
8+
server_name kasm.*;
9+
10+
include /config/nginx/ssl.conf;
11+
12+
client_max_body_size 0;
13+
14+
location / {
15+
proxy_set_header Upgrade $http_upgrade;
16+
proxy_set_header Connection "upgrade";
17+
proxy_set_header Host $host;
18+
proxy_set_header X-Real-IP $remote_addr;
19+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
20+
proxy_set_header X-Forwarded-Proto $scheme;
21+
proxy_http_version 1.1;
22+
proxy_read_timeout 1800s;
23+
proxy_send_timeout 1800s;
24+
proxy_connect_timeout 1800s;
25+
proxy_buffering off;
26+
include /config/nginx/resolver.conf;
27+
set $upstream_app kasm;
28+
set $upstream_port 8443;
29+
set $upstream_proto https;
30+
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
31+
32+
}
33+
34+
}
35+
36+
# Wizard UI - Please enable some form of auth if publishing to the internet
37+
# Or simply remove this and access it locally
38+
server {
39+
listen 443 ssl;
40+
listen [::]:443 ssl;
41+
42+
server_name kasm-wizard.*;
43+
44+
include /config/nginx/ssl.conf;
45+
46+
client_max_body_size 0;
47+
48+
# enable for ldap auth (requires ldap-location.conf in the location block)
49+
#include /config/nginx/ldap-server.conf;
50+
51+
# enable for Authelia (requires authelia-location.conf in the location block)
52+
#include /config/nginx/authelia-server.conf;
53+
54+
# enable for Authentik (requires authentik-location.conf in the location block)
55+
#include /config/nginx/authentik-server.conf;
56+
57+
location / {
58+
# enable the next two lines for http auth
59+
#auth_basic "Restricted";
60+
#auth_basic_user_file /config/nginx/.htpasswd;
61+
62+
# enable for ldap auth (requires ldap-server.conf in the server block)
63+
#include /config/nginx/ldap-location.conf;
64+
65+
# enable for Authelia (requires authelia-server.conf in the server block)
66+
#include /config/nginx/authelia-location.conf;
67+
68+
# enable for Authentik (requires authentik-server.conf in the server block)
69+
#include /config/nginx/authentik-location.conf;
70+
71+
include /config/nginx/proxy.conf;
72+
include /config/nginx/resolver.conf;
73+
set $upstream_app kasm;
74+
set $upstream_port 3000;
75+
set $upstream_proto https;
76+
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
77+
78+
}
79+
80+
}

0 commit comments

Comments
 (0)