Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions data/traefik.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,25 @@
entryPoints:
http:
address: ":80"
# Finite read timeout so abandoned/slowloris connections (constant on a
# public IP from internet scanners) are reaped instead of holding a file
# descriptor forever. Without it traefik leaks fds until accept() fails with
# EMFILE and the shard goes unreachable. 300s stays generous for slow/large
# uploads; writeTimeout is left at its default (0) so large downloads, SSE,
# and long-poll responses are not cut off.
transport:
respondingTimeouts:
readTimeout: "300s"
http:
redirections:
entryPoint:
to: https
scheme: https
https:
address: ":443"
transport:
respondingTimeouts:
readTimeout: "300s"
mqtt:
address: ":8883"

Expand Down
5 changes: 5 additions & 0 deletions data/traefik_no_ssl.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
entryPoints:
http:
address: ":80"
# See traefik.yml: finite read timeout reaps abandoned/slowloris connections
# so traefik does not leak file descriptors until accept() hits EMFILE.
transport:
respondingTimeouts:
readTimeout: "300s"
mqtt:
address: ":8883"

Expand Down
Loading