Skip to content

Commit 416bef8

Browse files
authored
Merge pull request #383 from linuxserver/php-auth
Add auth comments for php location
2 parents adf38bc + 500d560 commit 416bef8

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

root/defaults/nginx/site-confs/default.conf.sample

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Version 2023/04/13 - Changelog: https://github.com/linuxserver/docker-swag/commits/master/root/defaults/nginx/site-confs/default.conf.sample
1+
## Version 2023/06/05 - Changelog: https://github.com/linuxserver/docker-swag/commits/master/root/defaults/nginx/site-confs/default.conf.sample
22

33
# redirect all traffic to https
44
server {
@@ -52,6 +52,19 @@ server {
5252
}
5353

5454
location ~ ^(.+\.php)(.*)$ {
55+
# enable the next two lines for http auth
56+
#auth_basic "Restricted";
57+
#auth_basic_user_file /config/nginx/.htpasswd;
58+
59+
# enable for ldap auth (requires ldap-server.conf in the server block)
60+
#include /config/nginx/ldap-location.conf;
61+
62+
# enable for Authelia (requires authelia-server.conf in the server block)
63+
#include /config/nginx/authelia-location.conf;
64+
65+
# enable for Authentik (requires authentik-server.conf in the server block)
66+
#include /config/nginx/authentik-location.conf;
67+
5568
fastcgi_split_path_info ^(.+\.php)(.*)$;
5669
fastcgi_pass 127.0.0.1:9000;
5770
fastcgi_index index.php;

0 commit comments

Comments
 (0)