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