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

Securing host registration #34

Closed
vialcollet opened this issue Mar 26, 2021 · 2 comments · May be fixed by #40
Closed

Securing host registration #34

vialcollet opened this issue Mar 26, 2021 · 2 comments · May be fixed by #40

Comments

@vialcollet
Copy link

Hi
Congrats for this great job. I love it.
I was wondering if there is a possiblity to secure new host registration with a password.
The idea is to make it private and prevent random visitors to register their hosts.
Thanks!

@sliterok
Copy link

Add basicauth to your Caddyfile, e.g:

{$DDNS_CADDY_DOMAIN} {
  tls {$DDNS_CADDY_TLS_EMAIL}
  basicauth / admin password
  proxy / {$DDNS_FRONTEND_HOST} {
    transparent
  }
}

Remember that you would also need to add -u admin:password to your curl command

@vialcollet
Copy link
Author

Oh fantastic!
Thanks for your reply

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

Successfully merging a pull request may close this issue.

2 participants