|
1 |
| -## Version 2023/02/05 |
| 1 | +## Version 2025/04/29 |
2 | 2 | # make sure that your pihole container is named pihole
|
3 |
| -# pihole does not require a base url setting |
| 3 | +# make sure that pihole is set to work with the base url /pihole |
| 4 | + |
| 5 | +# in pihole settings, under Webserver and API, set "webserver.paths.prefix" to "/pihole", |
| 6 | +# or run `[docker container exec pihole] pihole-FTL --config webserver.paths.prefix /pihole` |
4 | 7 |
|
5 | 8 | location /pihole {
|
6 | 9 | return 301 $scheme://$host/pihole/;
|
@@ -31,24 +34,11 @@ location ^~ /pihole/ {
|
31 | 34 | proxy_hide_header X-Frame-Options;
|
32 | 35 | }
|
33 | 36 |
|
34 |
| -location /pihole/admin { |
35 |
| - return 301 $scheme://$host/pihole/admin/; |
| 37 | +location /pihole/api { |
| 38 | + return 301 $scheme://$host/pihole/api/; |
36 | 39 | }
|
37 | 40 |
|
38 |
| -location ^~ /pihole/admin/ { |
39 |
| - # enable the next two lines for http auth |
40 |
| - #auth_basic "Restricted"; |
41 |
| - #auth_basic_user_file /config/nginx/.htpasswd; |
42 |
| - |
43 |
| - # enable for ldap auth (requires ldap-server.conf in the server block) |
44 |
| - #include /config/nginx/ldap-location.conf; |
45 |
| - |
46 |
| - # enable for Authelia (requires authelia-server.conf in the server block) |
47 |
| - #include /config/nginx/authelia-location.conf; |
48 |
| - |
49 |
| - # enable for Authentik (requires authentik-server.conf in the server block) |
50 |
| - #include /config/nginx/authentik-location.conf; |
51 |
| - |
| 41 | +location ^~ /pihole/api/ { |
52 | 42 | include /config/nginx/proxy.conf;
|
53 | 43 | include /config/nginx/resolver.conf;
|
54 | 44 | set $upstream_app pihole;
|
|
0 commit comments