Skip to content

Commit 0ad0273

Browse files
authored
Create unifi-network-application.subdomain.conf.sample
1 parent 7a71eec commit 0ad0273

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
## Version 2023/09/06
2+
# make sure that your unifi-network-application container is named unifi-network-application
3+
# make sure that your dns has a cname set for unifi
4+
# NOTE: If you use the proxy_cookie_path setting in proxy.conf you need to remove HTTPOnly;
5+
# ex: proxy_cookie_path / "/; Secure";
6+
7+
server {
8+
listen 443 ssl http2;
9+
listen [::]:443 ssl http2;
10+
11+
server_name unifi.*;
12+
13+
include /config/nginx/ssl.conf;
14+
15+
client_max_body_size 0;
16+
17+
# enable for ldap auth (requires ldap-location.conf in the location block)
18+
#include /config/nginx/ldap-server.conf;
19+
20+
# enable for Authelia (requires authelia-location.conf in the location block)
21+
#include /config/nginx/authelia-server.conf;
22+
23+
# enable for Authentik (requires authentik-location.conf in the location block)
24+
#include /config/nginx/authentik-server.conf;
25+
26+
location / {
27+
# enable the next two lines for http auth
28+
#auth_basic "Restricted";
29+
#auth_basic_user_file /config/nginx/.htpasswd;
30+
31+
# enable for ldap auth (requires ldap-server.conf in the server block)
32+
#include /config/nginx/ldap-location.conf;
33+
34+
# enable for Authelia (requires authelia-server.conf in the server block)
35+
#include /config/nginx/authelia-location.conf;
36+
37+
# enable for Authentik (requires authentik-server.conf in the server block)
38+
#include /config/nginx/authentik-location.conf;
39+
40+
include /config/nginx/proxy.conf;
41+
include /config/nginx/resolver.conf;
42+
set $upstream_app unifi-network-application;
43+
set $upstream_port 8443;
44+
set $upstream_proto https;
45+
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
46+
47+
proxy_buffering off;
48+
}
49+
}

0 commit comments

Comments
 (0)