From dc7fe450e7f142252925b723439bf066bedce9c2 Mon Sep 17 00:00:00 2001 From: Adrian L Lange Date: Sat, 10 Apr 2021 00:19:51 +0200 Subject: [PATCH] Added Caddy2 example for securing the admin pages --- Proxy-examples.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Proxy-examples.md b/Proxy-examples.md index 0d68bb3..bfc3e25 100644 --- a/Proxy-examples.md +++ b/Proxy-examples.md @@ -68,6 +68,13 @@ If you prefer, you can also directly specify a value instead of substituting an # if you encounter issues. encode gzip + # Optionally only allow access to the admin interface from local networks + @secureadmin { + not remote_ip 192.168.0.0/16 172.16.0.0/12 10.0.0.0/8 + path /admin* + } + redir @secureadmin / + # Notifications redirected to the websockets server reverse_proxy /notifications/hub :3012