-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtraefik.local.toml
executable file
·134 lines (110 loc) · 3.21 KB
/
traefik.local.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
################################################################
# Global configuration
################################################################
# Enable debug mode
# debug = true
# Log level
logLevel = "ERROR"
################################################################
# Entrypoints configuration
################################################################
# Entrypoints definition
defaultEntryPoints = ["http", "https"]
[entryPoints]
[entryPoints.http]
address = ":80"
[entryPoints.http.redirect]
entryPoint = "https"
[entryPoints.https]
address = ":443"
[entryPoints.https.tls]
[[entryPoints.https.tls.certificates]]
certFile = "/certs/public.localdomain.pem"
keyFile = "/certs/public.localdomain.key"
# Lines above are for use of self-signed SSL certificates only.
# Let's Encrypt cannot be used with locals or demos.
# Use the script called /config/proxy/ssl-certs/local.sh to generate these Local self-signed SSL certificates.
# Once created add their names to the certFile and keyFile sections accordingly
################################################################
# Traefik logs configuration
################################################################
# Traefik logs
# Enabled by default and log to stdout
#
# Optional
#
[traefikLog]
# Sets the filepath for the traefik log. If not specified, stdout will be used.
# Intermediate directories are created if necessary.
#
# Optional
# Default: os.Stdout
#
#filePath = "/etc/traefik/traefik_logs/traefik.log"
# Format is either "json" or "common".
#
# Optional
# Default: "common"
#
format = "common"
################################################################
# Access logs configuration
################################################################
# Enable access logs
# By default it will write to stdout and produce logs in the textual
# Common Log Format (CLF), extended with additional fields.
#
# Optional
#
[accessLog]
# Sets the file path for the access log. If not specified, stdout will be used.
# Intermediate directories are created if necessary.
#
# Optional
# Default: os.Stdout
#
#filePath = "/etc/traefik/traefik_logs/access.log"
# Format is either "json" or "common".
#
# Optional
# Default: "common"
#
format = "common"
################################################################
# API and dashboard configuration
################################################################
# Enable API and dashboard
[api]
# Name of the related entry point
#
# Optional
# Default: "traefik"
#
# entryPoint = "traefik"
# Enabled Dashboard
#
# Optional
# Default: true
#
# dashboard = false
################################################################
# Docker configuration backend
################################################################
# Enable Docker configuration backend
[docker]
# Docker server endpoint. Can be a tcp or a unix socket endpoint.
#
# Required
# Default: "unix:///var/run/docker.sock"
#
# endpoint = "tcp://10.10.10.10:2375"
endpoint = "unix:///var/run/docker.sock"
exposedbydefault = false
watch = true
## usebindportip = true ## deprecated per Traefik developers.
# Use Swarm Mode services as data provider.
#
# Optional
# Default: false
#
# swarmmode = false