Added Caddy2 example for securing the admin pages

Adrian L Lange
2021-04-10 00:19:51 +02:00
parent 5995320f6c
commit dc7fe450e7

@@ -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 <SERVER>:3012