mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-03-24 18:59:21 -07:00
Edit to the Caddyfile example. This is a better option for users that may be using a wildcard cert and multiple matchers for each service/host they run.
@@ -17,6 +17,16 @@ In the Caddyfile syntax, `{$VAR}` denotes the value of the environment variable
|
|||||||
If you prefer, you can also directly specify a value instead of substituting an env var value.
|
If you prefer, you can also directly specify a value instead of substituting an env var value.
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
# Uncomment this in addition with the import admin_redir statement allow access to the admin interface only from local networks
|
||||||
|
# (admin_redir) {
|
||||||
|
# @admin {
|
||||||
|
# path /admin*
|
||||||
|
# not remote_ip private_ranges
|
||||||
|
# }
|
||||||
|
# redir @admin /
|
||||||
|
# }
|
||||||
|
|
||||||
{$DOMAIN} {
|
{$DOMAIN} {
|
||||||
log {
|
log {
|
||||||
level INFO
|
level INFO
|
||||||
@@ -54,11 +64,7 @@ If you prefer, you can also directly specify a value instead of substituting an
|
|||||||
# }
|
# }
|
||||||
|
|
||||||
# Uncomment to allow access to the admin interface only from local networks
|
# Uncomment to allow access to the admin interface only from local networks
|
||||||
# @insecureadmin {
|
# import admin_redir
|
||||||
# not remote_ip 192.168.0.0/16 172.16.0.0/12 10.0.0.0/8
|
|
||||||
# path /admin*
|
|
||||||
# }
|
|
||||||
# redir @insecureadmin /
|
|
||||||
|
|
||||||
# Notifications redirected to the websockets server
|
# Notifications redirected to the websockets server
|
||||||
reverse_proxy /notifications/hub <SERVER>:3012
|
reverse_proxy /notifications/hub <SERVER>:3012
|
||||||
|
|||||||
Reference in New Issue
Block a user