Pho3nix
The Legend
Hi guys,
So have a couple things running on port 80 with nginx already and wanted to try out PiHole.
Went through a couple guides and still doesn't work :|
Have this at the moment :
From my understanding this isn't working properly as I don't have the 'server {' portion mentioned here : https://docs.pi-hole.net/guides/nginx-configuration/#basic-requirements
Don't have that at the moment as I am running my stuff placed in the /etc/nginx/apps folder as individual configs.
Has anyone of you guys attempted this?
So have a couple things running on port 80 with nginx already and wanted to try out PiHole.
Went through a couple guides and still doesn't work :|
Have this at the moment :
Code:
location /pihole {
return 301 $scheme://$host/pihole/;
}
location ^~ /pihole/ {
include /etc/nginx/snippets/proxy.conf;
set $upstream_app pihole;
set $upstream_port 80;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
auth_basic "What's the password?";
auth_basic_user_file /etc/htpasswd.d/htpasswd.user};
rewrite /pihole(.*) $1 break;
proxy_hide_header X-Frame-Options;
}
location /pihole/admin {
return 301 $scheme://$host/pihole/admin/;
}
location ^~ /pihole/admin/ {
include /etc/nginx/snippets/proxy.conf;
set $upstream_app pihole;
set $upstream_port 80;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
auth_basic "What's the password?";
auth_basic_user_file /etc/htpasswd.d/htpasswd.user;
rewrite /pihole(.*) $1 break;
proxy_hide_header X-Frame-Options;
}
}
From my understanding this isn't working properly as I don't have the 'server {' portion mentioned here : https://docs.pi-hole.net/guides/nginx-configuration/#basic-requirements
Don't have that at the moment as I am running my stuff placed in the /etc/nginx/apps folder as individual configs.
Has anyone of you guys attempted this?