|
1 | | -## Version 2026/01/16 |
2 | | -# make sure that your firefly-pico container is named firefly-pico |
3 | | -# make sure that your dns has a cname set for firefly-pico |
4 | | -
|
5 | | -server { |
6 | | - listen 443 ssl; |
7 | | - listen [::]:443 ssl; |
8 | | -
|
9 | | - server_name firefly-pico.*; |
10 | | -
|
11 | | - include /config/nginx/ssl.conf; |
12 | | -
|
13 | | - client_max_body_size 0; |
14 | | -
|
15 | | - # enable for ldap auth (requires ldap-location.conf in the location block) |
16 | | - #include /config/nginx/ldap-server.conf; |
17 | | -
|
18 | | - # enable for Authelia (requires authelia-location.conf in the location block) |
19 | | - #include /config/nginx/authelia-server.conf; |
20 | | -
|
21 | | - # enable for Authentik (requires authentik-location.conf in the location block) |
22 | | - #include /config/nginx/authentik-server.conf; |
23 | | -
|
24 | | - # enable for Tinyauth (requires tinyauth-location.conf in the location block) |
25 | | - #include /config/nginx/tinyauth-server.conf; |
26 | | -
|
27 | | - location / { |
28 | | -
|
29 | | - # enable the next two lines for http auth |
30 | | - #auth_basic "Restricted"; |
31 | | - #auth_basic_user_file /config/nginx/.htpasswd; |
32 | | -
|
33 | | - # enable for ldap auth (requires ldap-server.conf in the server block) |
34 | | - #include /config/nginx/ldap-location.conf; |
35 | | -
|
36 | | - # enable for Authelia (requires authelia-server.conf in the server block) |
37 | | - #include /config/nginx/authelia-location.conf; |
38 | | -
|
39 | | - # enable for Authentik (requires authentik-server.conf in the server block) |
40 | | - #include /config/nginx/authentik-location.conf; |
41 | | -
|
42 | | - # enable for Tinyauth (requires tinyauth-server.conf in the server block) |
43 | | - #include /config/nginx/tinyauth-location.conf; |
44 | | -
|
45 | | - include /config/nginx/proxy.conf; |
46 | | - include /config/nginx/resolver.conf; |
47 | | -
|
48 | | - set $upstream_app firefly-pico; |
49 | | - set $upstream_port 80; |
50 | | - set $upstream_proto http; |
51 | | -
|
52 | | - proxy_pass $upstream_proto://$upstream_app:$upstream_port; |
53 | | - } |
54 | | -} |
| 1 | +## Version 2026/01/16 |
| 2 | +# make sure that your firefly-pico container is named firefly-pico |
| 3 | +# make sure that your dns has a cname set for firefly-pico |
| 4 | + |
| 5 | +server { |
| 6 | + listen 443 ssl; |
| 7 | + listen [::]:443 ssl; |
| 8 | + |
| 9 | + server_name firefly-pico.*; |
| 10 | + |
| 11 | + include /config/nginx/ssl.conf; |
| 12 | + |
| 13 | + client_max_body_size 0; |
| 14 | + |
| 15 | + # enable for ldap auth (requires ldap-location.conf in the location block) |
| 16 | + #include /config/nginx/ldap-server.conf; |
| 17 | + |
| 18 | + # enable for Authelia (requires authelia-location.conf in the location block) |
| 19 | + #include /config/nginx/authelia-server.conf; |
| 20 | + |
| 21 | + # enable for Authentik (requires authentik-location.conf in the location block) |
| 22 | + #include /config/nginx/authentik-server.conf; |
| 23 | + |
| 24 | + # enable for Tinyauth (requires tinyauth-location.conf in the location block) |
| 25 | + #include /config/nginx/tinyauth-server.conf; |
| 26 | + |
| 27 | + location / { |
| 28 | + |
| 29 | + # enable the next two lines for http auth |
| 30 | + #auth_basic "Restricted"; |
| 31 | + #auth_basic_user_file /config/nginx/.htpasswd; |
| 32 | + |
| 33 | + # enable for ldap auth (requires ldap-server.conf in the server block) |
| 34 | + #include /config/nginx/ldap-location.conf; |
| 35 | + |
| 36 | + # enable for Authelia (requires authelia-server.conf in the server block) |
| 37 | + #include /config/nginx/authelia-location.conf; |
| 38 | + |
| 39 | + # enable for Authentik (requires authentik-server.conf in the server block) |
| 40 | + #include /config/nginx/authentik-location.conf; |
| 41 | + |
| 42 | + # enable for Tinyauth (requires tinyauth-server.conf in the server block) |
| 43 | + #include /config/nginx/tinyauth-location.conf; |
| 44 | + |
| 45 | + include /config/nginx/proxy.conf; |
| 46 | + include /config/nginx/resolver.conf; |
| 47 | + |
| 48 | + set $upstream_app firefly-pico; |
| 49 | + set $upstream_port 80; |
| 50 | + set $upstream_proto http; |
| 51 | + |
| 52 | + proxy_pass $upstream_proto://$upstream_app:$upstream_port; |
| 53 | + } |
| 54 | +} |
0 commit comments