diff options
| author | grunfink <grunfink@noreply.codeberg.org> | 2025-09-06 09:39:23 +0200 |
|---|---|---|
| committer | grunfink <grunfink@noreply.codeberg.org> | 2025-09-06 09:39:23 +0200 |
| commit | 9149959f10249859ae2fd1edfbbef12d938f6a6c (patch) | |
| tree | a2466245854438bff8c8d50d2db4b51d2cfc2cfe /examples/docker-swarm-traefik/traefik_config.yml | |
| parent | 6dae96de25ed8d91767aa4cb4e634b71a4b9ae9a (diff) | |
| parent | ffaa7aeb808c1db3594b5ad1989e20d2154d547c (diff) | |
Merge pull request 'Docker: add timezone, new examples for building and complete Swarm mode stack with Traefik' (#465) from daltux/snac2:docker_tzdata into master
Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/465
Diffstat (limited to 'examples/docker-swarm-traefik/traefik_config.yml')
| -rw-r--r-- | examples/docker-swarm-traefik/traefik_config.yml | 89 |
1 files changed, 89 insertions, 0 deletions
diff --git a/examples/docker-swarm-traefik/traefik_config.yml b/examples/docker-swarm-traefik/traefik_config.yml new file mode 100644 index 0000000..045408c --- /dev/null +++ b/examples/docker-swarm-traefik/traefik_config.yml @@ -0,0 +1,89 @@ +--- +# Traefik main config file +# e.g. /opt/docker/traefik/traefik_config.yml + +entryPoints: + web: + address: ":80" + http: + encodeQuerySemicolons: true + redirections: + entryPoint: + to: websecure + scheme: https + permanent: true + websecure: + address: ":443" + asDefault: true + http: + encodeQuerySemicolons: true + tls: + certResolver: letsencrypt + http2: + maxConcurrentStreams: 100 + http3: {} + +certificatesResolvers: + letsencrypt: + acme: + email: you@example.net + storage: "/acme/letsencrypt.json" + keyType: EC384 + httpChallenge: + entryPoint: web +# buypass: +# acme: +# email: you@example.net +# caServer: "https://api.buypass.com/acme/directory" +# storage: "/acme/buypass.json" +# keyType: EC256 +# certificatesDuration: 4320 +# httpChallenge: +# entryPoint: web + +ocsp: {} + +tls: + stores: + default: + defaultGeneratedCert: + resolver: letsencrypt + domain: + main: snac.example.net + # sans: + # - other.example.net + # - another.example.net + +providers: + file: + directory: "/etc/traefik/dynamic" + watch: true + swarm: + network: "proxy" + endpoint: "unix:///var/run/docker.sock" + exposedByDefault: false + watch: true + allowEmptyServices: true + +api: + dashboard: true + insecure: false + debug: false + disabledashboardad: true + +log: + level: "INFO" + filePath: "/var/log/server.log" + +accessLog: + filePath: "/var/log/traefik-access.log" + bufferingSize: 15 + fields: + names: + StartUTC: "drop" + +experimental: + plugins: + souin: + moduleName: "github.com/darkweak/souin" + version: "v1.7.7" |