-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhance Traefik config for secure redirections
Enabled dashboard and debug API settings for easier monitoring and troubleshooting. Introduced HTTP to HTTPS redirection for improved security. Updated certificate resolver email and enabled Docker provider to ensure proper certificate acquisition. Adjusted TLS settings for better domain control and certificate management. These changes aim to enhance the security and manageability of the Traefik setup.
- Loading branch information
Showing
2 changed files
with
32 additions
and
39 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,47 @@ | ||
#api: | ||
# dashboard: true | ||
# insecure: true | ||
# debug: true | ||
api: | ||
dashboard: true | ||
insecure: true | ||
debug: true | ||
entryPoints: | ||
web: | ||
address: ":80" | ||
http: | ||
redirections: | ||
entryPoint: | ||
to: websecure | ||
scheme: https | ||
|
||
websecure: | ||
address: ":443" | ||
|
||
certificatesResolvers: | ||
myresolver: | ||
acme: | ||
email: "${EMAIL}" | ||
email: "[email protected]" | ||
storage: /letsencrypt/acme.json | ||
caServer: https://acme-staging-v02.api.letsencrypt.org/directory # staging | ||
httpChallenge: | ||
# used during the challenge | ||
entryPoint: web | ||
|
||
|
||
http: | ||
routers: | ||
blog: | ||
rule: "Host(`home.youngsecurity.net`) && Path(`/`)" | ||
rule: "Host(`*.home.youngsecurity.net`) && Path(`/`)" | ||
tls: | ||
certResolver: myresolver | ||
#entryPoints: | ||
# web: | ||
# address: ":80" | ||
# http: | ||
# redirections: | ||
# entryPoint: | ||
# to: websecure | ||
# scheme: https | ||
# websecure: | ||
# address: ":443" | ||
|
||
|
||
#serversTransport: | ||
# insecureSkipVerify: true | ||
#providers: | ||
# docker: | ||
# endpoint: "unix:///var/run/docker.sock" | ||
# exposedByDefault: false | ||
providers: | ||
docker: | ||
endpoint: "unix:///var/run/docker.sock" | ||
exposedByDefault: false | ||
# file: | ||
# filename: /config.yml | ||
#certificatesResolvers: | ||
# youngsecurity: | ||
# acme: | ||
# email: "${EMAIL}" | ||
# storage: /letsencrypt/acme.json | ||
|
||
|
||
# cloudflare: | ||
# acme: | ||
|
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