forked from Dokploy/dokploy
-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Labels
enhancementNew feature or requestNew feature or request
Description
What problem will this feature address?
I noticed that most HTTP responses are uncompressed.
Describe the solution you'd like
Traefik supports the Compress middleware. It would be great if response compression can be enabled server-wide (like how Cloudflare's automatically compresses HTTP responses if the upstream doesn't do it).
Describe alternatives you've considered
Currently I am using manually editing Traefik config.
First I have to create a dynamic config file:
# /etc/dokploy/traefik/dynamic/compress.yml
http:
middlewares:
compress:
compress:
encodings: [br, zstd, gzip]Then I have to edit the main config file to use this middleware globally:
# /etc/dokploy/traefik/traefik.yml (excerpt)
entryPoints:
web:
address: :80
http: # 👈 NEW
middlewares:
- compress@file
websecure:
address: :443
http3:
advertisedPort: 443
http:
tls:
certResolver: letsencrypt
middlewares: # 👈 NEW
- compress@fileAfter reloading, responses are now compressed.
Additional context
No response
Will you send a PR to implement it?
No
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request