Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

possbility to login to pihole using basic authentication #4

Open
frollic opened this issue Feb 17, 2020 · 0 comments
Open

possbility to login to pihole using basic authentication #4

frollic opened this issue Feb 17, 2020 · 0 comments

Comments

@frollic
Copy link

frollic commented Feb 17, 2020

Hi,

I have two piholes set up, and exposed to the internet, and I'd like to use your script to keep them in sync.
But to get some extra security on both, I've password protected the whole /admin sub URL using lighttpds' basic authentication.

Would it be possible to have the additional authentication added to your script ?

The extra configuration required in lighttpd.conf is as follows.
You obviously also need to insert logon info into the .htpasswd file.

$HTTP["url"] =~ "^/admin/.(.*)" {
url.access-deny = ("")
}

auth.backend = "htpasswd"
auth.backend.htpasswd.userfile = "/etc/lighttpd/.htpasswd"
auth.require = ( "/admin/" =>
(
"method" => "basic",
"realm" => "cool access",
"require" => "valid-user",
)
)

thank you in advance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant