From fed5f31df4e6ad59832306517062de6976a30705 Mon Sep 17 00:00:00 2001 From: sliterok Date: Fri, 13 Aug 2021 21:45:58 +0300 Subject: [PATCH] Add Securing the Setup section to resolve #34 --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 5bf78bb..6d6e3d5 100644 --- a/README.md +++ b/README.md @@ -81,3 +81,17 @@ rebuilds the containers. ``` docker-compose --project-name ddns up -d --build ``` + +#### Securing the Setup + +Add basicauth to `caddy/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