Improve caddy config for general wildcard
This commit is contained in:
parent
654b7c18b1
commit
43045d868a
3 changed files with 15 additions and 3 deletions
playbooks/roles/caddy
|
@ -44,3 +44,10 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
(vpn_only) {
|
||||
@denied not client_ip private_ranges
|
||||
handle @denied {
|
||||
redir https://www.serguzim.me/
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,4 +8,11 @@
|
|||
}
|
||||
|
||||
import /etc/caddy/snippets
|
||||
|
||||
*.serguzim.me {
|
||||
import acmedns
|
||||
|
||||
redir https://www.serguzim.me/
|
||||
}
|
||||
|
||||
import /etc/caddy/conf.d/*.conf
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue