1+ ## Version 2025/11/06
2+ # make sure that your hbbs container is named hbbs
3+ # make sure that your dns has a cname set for hbbs
4+ # /ws/relay location only works if you have hbbr container configured and named hbbr
5+ # full guide https://rustdesk.com/docs/en/self-host/rustdesk-server-pro/faq/#set-up-https-for-web-console-manually
6+
7+ server {
8+ listen 443 ssl;
9+ listen [::]:443 ssl;
10+
11+ server_name hbbs.*;
12+
13+ include /config/nginx/ssl.conf;
14+
15+ client_max_body_size 0;
16+
17+ location / {
18+ # enable the next two lines for http auth
19+ #auth_basic "Restricted";
20+ #auth_basic_user_file /config/nginx/.htpasswd;
21+
22+ # enable for ldap auth (requires ldap-server.conf in the server block)
23+ #include /config/nginx/ldap-location.conf;
24+
25+ # enable for Authelia (requires authelia-server.conf in the server block)
26+ #include /config/nginx/authelia-location.conf;
27+
28+ # enable for Authentik (requires authentik-server.conf in the server block)
29+ #include /config/nginx/authentik-location.conf;
30+
31+ include /config/nginx/proxy.conf;
32+ include /config/nginx/resolver.conf;
33+ proxy_set_header X-Real-IP $remote_addr;
34+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
35+
36+ proxy_pass http://hbbs:21114;
37+
38+ }
39+
40+ location /ws/id {
41+ proxy_pass http://hbbs:21118;
42+ proxy_http_version 1.1;
43+ proxy_set_header Upgrade $http_upgrade;
44+ proxy_set_header Connection "Upgrade";
45+ proxy_set_header Host $host;
46+ proxy_set_header X-Real-IP $remote_addr;
47+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
48+ proxy_set_header X-Forwarded-Proto $scheme;
49+ proxy_read_timeout 120s;
50+ }
51+
52+ location /ws/relay {
53+ proxy_pass http://hbbr:21119;
54+ proxy_http_version 1.1;
55+ proxy_set_header Upgrade $http_upgrade;
56+ proxy_set_header Connection "Upgrade";
57+ proxy_set_header Host $host;
58+ proxy_set_header X-Real-IP $remote_addr;
59+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
60+ proxy_set_header X-Forwarded-Proto $scheme;
61+ proxy_read_timeout 120s;
62+ }
63+ }
0 commit comments