summaryrefslogtreecommitdiff
path: root/examples/docker-swarm-traefik/traefik_config.yml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/docker-swarm-traefik/traefik_config.yml')
-rw-r--r--examples/docker-swarm-traefik/traefik_config.yml89
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 @@
1---
2# Traefik main config file
3# e.g. /opt/docker/traefik/traefik_config.yml
4
5entryPoints:
6 web:
7 address: ":80"
8 http:
9 encodeQuerySemicolons: true
10 redirections:
11 entryPoint:
12 to: websecure
13 scheme: https
14 permanent: true
15 websecure:
16 address: ":443"
17 asDefault: true
18 http:
19 encodeQuerySemicolons: true
20 tls:
21 certResolver: letsencrypt
22 http2:
23 maxConcurrentStreams: 100
24 http3: {}
25
26certificatesResolvers:
27 letsencrypt:
28 acme:
29 email: you@example.net
30 storage: "/acme/letsencrypt.json"
31 keyType: EC384
32 httpChallenge:
33 entryPoint: web
34# buypass:
35# acme:
36# email: you@example.net
37# caServer: "https://api.buypass.com/acme/directory"
38# storage: "/acme/buypass.json"
39# keyType: EC256
40# certificatesDuration: 4320
41# httpChallenge:
42# entryPoint: web
43
44ocsp: {}
45
46tls:
47 stores:
48 default:
49 defaultGeneratedCert:
50 resolver: letsencrypt
51 domain:
52 main: snac.example.net
53 # sans:
54 # - other.example.net
55 # - another.example.net
56
57providers:
58 file:
59 directory: "/etc/traefik/dynamic"
60 watch: true
61 swarm:
62 network: "proxy"
63 endpoint: "unix:///var/run/docker.sock"
64 exposedByDefault: false
65 watch: true
66 allowEmptyServices: true
67
68api:
69 dashboard: true
70 insecure: false
71 debug: false
72 disabledashboardad: true
73
74log:
75 level: "INFO"
76 filePath: "/var/log/server.log"
77
78accessLog:
79 filePath: "/var/log/traefik-access.log"
80 bufferingSize: 15
81 fields:
82 names:
83 StartUTC: "drop"
84
85experimental:
86 plugins:
87 souin:
88 moduleName: "github.com/darkweak/souin"
89 version: "v1.7.7"