Skip to content

Securing host registration #34

Closed
@vialcollet

Description

@vialcollet

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!

Activity

sliterok

sliterok commented on Aug 13, 2021

@sliterok

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

added a commit that references this issue on Aug 13, 2021
fed5f31
vialcollet

vialcollet commented on Aug 17, 2021

@vialcollet
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Participants

      @vialcollet@sliterok

      Issue actions

        Securing host registration · Issue #34 · pboehm/ddns