Private
Public Access
2
0

caddy: improve readability
Some checks failed
Publish collection to Galaxy / publish (push) Has been cancelled

This commit is contained in:
2026-04-08 08:12:29 +03:00
parent 8f76a7fa4f
commit b7c75f18f2
2 changed files with 11 additions and 5 deletions

View File

@@ -16,8 +16,8 @@
order coraza_waf first
{% endif %}
# See: https://github.com/pteich/caddy-tlsconsul
{% if caddy_consul %}
# See: https://github.com/pteich/caddy-tlsconsul
storage consul {
address "{{ caddy_consul_server }}"
token "{{ caddy_out_consul_token.token.SecretID | mandatory }}"
@@ -30,8 +30,8 @@
}
{% endif %}
# See: https://github.com/zhangjiayin/caddy-geoip2
{% if caddy_geoip %}
# See: https://github.com/zhangjiayin/caddy-geoip2
geoip2 {
accountId "{{ caddy_geoip_account_id | mandatory }}"
licenseKey "{{ caddy_geoip_license_key | mandatory }}"
@@ -47,8 +47,8 @@
email "{{ caddy_email }}"
{% endif %}
# See: https://github.com/hslatman/caddy-crowdsec-bouncer
{% if caddy_crowdsec %}
# See: https://github.com/hslatman/caddy-crowdsec-bouncer
crowdsec {
api_key {{ caddy_crowdsec_api_key | mandatory }}
api_url {{ caddy_crowdsec_api_url }}
@@ -233,8 +233,8 @@
{% endfor %}
}
# See: https://github.com/mholt/caddy-ratelimit
{% if caddy_ratelimit and site.rate_limit | default(caddy_sites_defaults.rate_limit) %}
# See: https://github.com/mholt/caddy-ratelimit
rate_limit @not_whitelisted {
{% if caddy_consul %}
distributed
@@ -292,8 +292,8 @@
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) %}
# See: https://github.com/steffenbusch/caddy-bot-barrier
bot_barrier @not_whitelisted {
secret {{ site.bot_barrier_secret | default(caddy_sites_defaults.bot_barrier_secret) | mandatory }}
complexity {{ site.bot_barrier_complexity | default(caddy_sites_defaults.bot_barrier_complexity) }}