caddy: add comments
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
order coraza_waf first
|
||||
{% endif %}
|
||||
|
||||
# See: https://github.com/pteich/caddy-tlsconsul
|
||||
{% if caddy_consul %}
|
||||
storage consul {
|
||||
address "{{ caddy_consul_server }}"
|
||||
@@ -29,6 +30,7 @@
|
||||
}
|
||||
{% endif %}
|
||||
|
||||
# See: https://github.com/zhangjiayin/caddy-geoip2
|
||||
{% if caddy_geoip %}
|
||||
geoip2 {
|
||||
accountId "{{ caddy_geoip_account_id | mandatory }}"
|
||||
@@ -45,6 +47,7 @@
|
||||
email "{{ caddy_email }}"
|
||||
{% endif %}
|
||||
|
||||
# See: https://github.com/hslatman/caddy-crowdsec-bouncer
|
||||
{% if caddy_crowdsec %}
|
||||
crowdsec {
|
||||
api_key {{ caddy_crowdsec_api_key | mandatory }}
|
||||
@@ -230,6 +233,7 @@
|
||||
{% endfor %}
|
||||
}
|
||||
|
||||
# See: https://github.com/mholt/caddy-ratelimit
|
||||
{% if caddy_ratelimit and site.rate_limit | default(caddy_sites_defaults.rate_limit) %}
|
||||
rate_limit @not_whitelisted {
|
||||
{% if caddy_consul %}
|
||||
@@ -288,6 +292,7 @@
|
||||
import cors-deny
|
||||
{% endif %}
|
||||
|
||||
# See: https://github.com/steffenbusch/caddy-bot-barrier
|
||||
{% if caddy_bot_barrier and site.bot_barrier | default(caddy_sites_defaults.bot_barrier) %}
|
||||
bot_barrier @not_whitelisted {
|
||||
secret {{ site.bot_barrier_secret | default(caddy_sites_defaults.bot_barrier_secret) | mandatory }}
|
||||
|
||||
Reference in New Issue
Block a user