Skip to content

Commit ae3e84b

Browse files
authored
Update traefik.yml
1 parent a60b376 commit ae3e84b

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

examples/traefik/traefik.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ entryPoints:
101101
http:
102102
tls:
103103
# Generate a wildcard domain certificate
104-
certResolver: myresolver
104+
certResolver: myresolver-dns
105105
domains:
106106
- main: example.com # change this to your proxy domain
107107
sans:
@@ -129,15 +129,20 @@ providers:
129129

130130
# Use letsencrypt to generate ssl certificates
131131
certificatesResolvers:
132-
myresolver:
132+
# ACME HTTP CHALLENGE
133+
myresolver-http:
134+
acme:
135+
email: [email protected] # the email address used for ssl certificate registration
136+
storage: /etc/traefik/acme.json
137+
httpChallenge: # acme http challenge; requires port 80 and proper dns entries
138+
entryPoint: http # specify the entry point for the HTTP challenge (adjust if needed)
139+
# ACME DNS CHALLENGE
140+
myresolver-dns:
133141
acme:
134142
email: [email protected] # the email address used for ssl certificate registration
135143
storage: /etc/traefik/acme.json
136-
#httpChallenge: # acme http challenge; requires port 80 and proper dns entries
137-
# entryPoint: http # specify the entry point for the HTTP challenge (adjust if needed)
138144
dnsChallenge: # acme dns challenge; requires api token of dns provider
139145
provider: cloudflare
140-
# Used to make sure the dns challenge is propagated to the right dns servers
141146
resolvers:
142147
- "1.1.1.1:53"
143148
- "1.0.0.1:53"

0 commit comments

Comments
 (0)