Skip to content

Commit c818c75

Browse files
Testing fixes
1 parent d3092eb commit c818c75

File tree

1 file changed

+22
-17
lines changed

1 file changed

+22
-17
lines changed

hbbs.subdomain.conf.sample

Lines changed: 22 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -15,30 +15,21 @@ server {
1515
client_max_body_size 0;
1616

1717
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-
3118
include /config/nginx/proxy.conf;
3219
include /config/nginx/resolver.conf;
3320
proxy_set_header X-Real-IP $remote_addr;
3421
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
3522

36-
proxy_pass http://hbbs:21114;
37-
23+
set $upstream_app hbbs;
24+
set $upstream_port 21114;
25+
set $upstream_proto http;
26+
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
3827
}
3928

4029
location /ws/id {
41-
proxy_pass http://hbbs:21118;
30+
include /config/nginx/proxy.conf;
31+
include /config/nginx/resolver.conf;
32+
4233
proxy_http_version 1.1;
4334
proxy_set_header Upgrade $http_upgrade;
4435
proxy_set_header Connection "Upgrade";
@@ -47,10 +38,19 @@ server {
4738
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
4839
proxy_set_header X-Forwarded-Proto $scheme;
4940
proxy_read_timeout 120s;
41+
42+
include /config/nginx/proxy.conf;
43+
include /config/nginx/resolver.conf;
44+
set $upstream_app hbbs;
45+
set $upstream_port 21118;
46+
set $upstream_proto http;
47+
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
5048
}
5149

5250
location /ws/relay {
53-
proxy_pass http://hbbr:21119;
51+
include /config/nginx/proxy.conf;
52+
include /config/nginx/resolver.conf;
53+
5454
proxy_http_version 1.1;
5555
proxy_set_header Upgrade $http_upgrade;
5656
proxy_set_header Connection "Upgrade";
@@ -59,5 +59,10 @@ server {
5959
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
6060
proxy_set_header X-Forwarded-Proto $scheme;
6161
proxy_read_timeout 120s;
62+
63+
set $upstream_app hbbr;
64+
set $upstream_port 21119;
65+
set $upstream_proto http;
66+
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
6267
}
6368
}

0 commit comments

Comments
 (0)