Update Pi-hole subfolder config to support Pi-hole v6 #762
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Add support for Pi-hole V6 by removing /admin and adding /api.
Pi-hole V6 does not honor X-Forwarded-For but allows for setting a base URL.
Benefits of this PR and context
Allows Pi-hole V6 to be configured behind a reverse proxy using a subfolder.
How Has This Been Tested?
Tested on a Raspberry Pi 5 running Pi-hole V6 and linuxserver SWAG behind Organizer authentication.
Source / References
pi-hole/FTL#2298
https://discourse.pi-hole.net/t/cant-get-v6-webinterface-behind-nginx-reverse-proxy-to-work/76231/16