resource and fixes

This commit is contained in:
2026-01-25 22:19:02 +00:00
parent afe037ffad
commit 445b638f55
2 changed files with 22 additions and 7 deletions

View File

@@ -8,7 +8,7 @@ http:
enabled: true
logLevel: INFO
updateIntervalSeconds: 60
crowdsecMode: stream
crowdsecMode: live
crowdsecAppsecEnabled: true
crowdsecAppsecFailureBlock: true
crowdsecAppsecUnreachableBlock: true
@@ -21,12 +21,12 @@ http:
- 10.0.0.0/8
clientTrustedIPs:
- 192.168.178.0/24
captchaProvider: hcaptcha
captchaSiteKey: b2d20610-8dda-4f40-8688-7ca8e1e628f8 # found in hcaptcha account
captchaSecretKey: {{ env "TRAEFIK_CAPTCHA_KEY" }}
captchaGracePeriodSeconds: 1800
captchaHTMLFilePath: /captcha.html
banHTMLFilePath: /ban.html
# captchaProvider: hcaptcha
# captchaSiteKey: b2d20610-8dda-4f40-8688-7ca8e1e628f8 # found in hcaptcha account
# captchaSecretKey: {{ env "TRAEFIK_CAPTCHA_KEY" }}
# captchaGracePeriodSeconds: 1800
# captchaHTMLFilePath: /captcha.html
# banHTMLFilePath: /ban.html
routers:
authelia:

View File

@@ -16,6 +16,11 @@ services:
TRAEFIK_PUBLIC_DOMAIN: ${PUBLIC_DOMAIN}
TRAEFIK_MAIN_SERVER_NODE_IP: ${MAIN_SERVER_NODE_IP}
TRAEFIK_CROWDSEC_API_KEY: ${CROWDSEC_API_KEY}
deploy:
resources:
limits:
cpus: "0.3"
memory: 150M
volumes:
- "/var/log/traefik/:/var/log/traefik/"
- "/var/run/docker.sock:/var/run/docker.sock:ro"
@@ -50,6 +55,11 @@ services:
TRAEFIK_LOG_DASHBOARD_AUTH_TOKEN: ${TRAEFIK_DASHBOARD_TOKEN}
TRAEFIK_LOG_DASHBOARD_SYSTEM_MONITORING: true
TRAEFIK_LOG_DASHBOARD_LOG_FORMAT: json
deploy:
resources:
limits:
cpus: "0.10"
memory: 50M
healthcheck:
test:
[
@@ -86,6 +96,11 @@ services:
depends_on:
traefik-agent:
condition: service_healthy
deploy:
resources:
limits:
cpus: "0.1"
memory: 50M
labels:
# traefik
- "traefik.enable=true"