Skip to content

Commit

Permalink
traefik: expose request header size setting
Browse files Browse the repository at this point in the history
  • Loading branch information
saltydk committed Nov 5, 2024
1 parent 5db0c7f commit 437b9ac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions roles/traefik/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,12 @@ traefik_entrypoint_web_port: "80"
traefik_entrypoint_web_readtimeout: "600"
traefik_entrypoint_web_writetimeout: "0"
traefik_entrypoint_web_idletimeout: "180"
traefik_entrypoint_web_request_maxheaderbytes: "1048576"
traefik_entrypoint_websecure_port: "443"
traefik_entrypoint_websecure_readtimeout: "600"
traefik_entrypoint_websecure_writetimeout: "0"
traefik_entrypoint_websecure_idletimeout: "180"
traefik_entrypoint_websecure_request_maxheaderbytes: "1048576"
traefik_entrypoint_custom: {}
# Format is as follows (address can be empty string "" to bind on every interface):
# Type options are tcp, udp or both.
Expand Down Expand Up @@ -275,12 +277,14 @@ traefik_docker_commands_default:
- "--entrypoints.web.transport.respondingTimeouts.readTimeout={{ traefik_entrypoint_web_readtimeout }}"
- "--entrypoints.web.transport.respondingTimeouts.writeTimeout={{ traefik_entrypoint_web_writetimeout }}"
- "--entrypoints.web.transport.respondingTimeouts.idleTimeout={{ traefik_entrypoint_web_idletimeout }}"
- "--entrypoints.web.http.maxheaderbytes={{ traefik_entrypoint_web_request_maxheaderbytes }}"
- "--entrypoints.websecure.address=:{{ traefik_entrypoint_websecure_port }}"
- "{{ '--entrypoints.websecure.forwardedheaders.trustedIPs=' + (traefik_cloudflare_ips | join(',')) + (',' + traefik_trusted_ips if (traefik_trusted_ips | length > 0) else '') }}"
- "{{ '--entrypoints.websecure.proxyprotocol.trustedIPs=' + (traefik_cloudflare_ips | join(',')) + (',' + traefik_trusted_ips if (traefik_trusted_ips | length > 0) else '') }}"
- "--entrypoints.websecure.transport.respondingTimeouts.readTimeout={{ traefik_entrypoint_websecure_readtimeout }}"
- "--entrypoints.websecure.transport.respondingTimeouts.writeTimeout={{ traefik_entrypoint_websecure_writetimeout }}"
- "--entrypoints.websecure.transport.respondingTimeouts.idleTimeout={{ traefik_entrypoint_websecure_idletimeout }}"
- "--entrypoints.websecure.http.maxheaderbytes={{ traefik_entrypoint_websecure_request_maxheaderbytes }}"
- "--entrypoints.websecure.http.tls.certResolver={{ traefik_default_certresolver }}"
- "--api.dashboard=true"
- "--api=true"
Expand Down

0 comments on commit 437b9ac

Please sign in to comment.