You've already forked caddy-opnsense-blocker
Expand public installation and API documentation
This commit is contained in:
23
examples/Caddyfile
Normal file
23
examples/Caddyfile
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
# caddy-opnsense-blocker expects the default JSON access log format.
|
||||
# If Caddy is itself behind another proxy, make sure request.client_ip
|
||||
# contains the real client address before you feed logs to the blocker.
|
||||
}
|
||||
|
||||
example.com {
|
||||
log {
|
||||
output file /var/log/caddy/public-web-access.json
|
||||
format json
|
||||
}
|
||||
|
||||
reverse_proxy 127.0.0.1:8080
|
||||
}
|
||||
|
||||
git.example.com {
|
||||
log {
|
||||
output file /var/log/caddy/gitea-access.json
|
||||
format json
|
||||
}
|
||||
|
||||
reverse_proxy 127.0.0.1:3000
|
||||
}
|
||||
Reference in New Issue
Block a user