-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docker: Add config file for Traefik in stead of command line options
This also adds X-Forwarded-for config so backends see the original ip address
- Loading branch information
Showing
2 changed files
with
36 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
providers: | ||
docker: | ||
exposedByDefault: false | ||
network: loadbalancer | ||
# File provider configuration | ||
file: | ||
directory: /config/config/ | ||
watch: true | ||
# EntryPoints configuration | ||
entryPoints: | ||
websecure: | ||
address: ":443" | ||
forwardedHeaders: | ||
trustedIPs: | ||
{% for engine_trusted_proxy_ip in engine_trusted_proxy_ips %} | ||
- {{ engine_trusted_proxy_ip }} | ||
{% endfor %} | ||
# Server transport configuration | ||
serversTransport: | ||
insecureSkipVerify: true | ||
# Enable access log | ||
accessLog: {} | ||
# Enable ping | ||
ping: {} | ||
# Global configuration | ||
global: | ||
checkNewVersion: false | ||
sendAnonymousUsage: false |