Changed TLS challenge settings

This commit is contained in:
Simon Einzinger 2024-12-23 21:22:55 +01:00
parent 8cdcac6403
commit 0ad5605369
2 changed files with 34 additions and 29 deletions

View file

@ -15,7 +15,8 @@ services:
traefik: traefik:
depends_on: depends_on:
- dockerproxy dockerproxy:
condition: service_started
image: traefik:v3.2 image: traefik:v3.2
container_name: traefik container_name: traefik
networks: networks:
@ -27,5 +28,5 @@ services:
restart: always restart: always
volumes: volumes:
- ./traefik.yaml:/etc/traefik/traefik.yaml:ro - ./traefik.yaml:/etc/traefik/traefik.yaml:ro
- ./letsencrypt:/var/letsencrypt - ./letsencrypt:/letsencrypt
- ./log:/log - ./log:/log

View file

@ -24,6 +24,11 @@ global:
entryPoints: entryPoints:
web: web:
address: ":80" address: ":80"
http:
redirections:
entryPoint:
to: websecure
scheme: https
websecure: websecure:
address: ":443" address: ":443"
@ -32,7 +37,7 @@ certificatesResolvers:
resolver: resolver:
acme: acme:
email: info@simon-einzinger.de email: info@simon-einzinger.de
storage: /var/letsencrypt/acme.json storage: "/letsencrypt/acme.json"
httpChallenge: httpChallenge:
entryPoint: web entryPoint: web
@ -72,8 +77,6 @@ log:
maxAge: 14 maxAge: 14
################################################################ ################################################################
# Access logs configuration # Access logs configuration
################################################################ ################################################################
@ -85,19 +88,19 @@ log:
# Optional # Optional
# #
#accessLog: #accessLog:
# Sets the file path for the access log. If not specified, stdout will be used. # Sets the file path for the access log. If not specified, stdout will be used.
# Intermediate directories are created if necessary. # Intermediate directories are created if necessary.
# #
# Optional # Optional
# Default: os.Stdout # Default: os.Stdout
# #
# filePath: /path/to/log/log.txt # filePath: /path/to/log/log.txt
# Format is either "json" or "common". # Format is either "json" or "common".
# #
# Optional # Optional
# Default: "common" # Default: "common"
# #
# format: json # format: json
################################################################ ################################################################
@ -108,7 +111,8 @@ log:
# #
# Optional # Optional
# #
api: {} api:
{}
# Enable the API in insecure mode # Enable the API in insecure mode
# #
# Optional # Optional
@ -116,12 +120,12 @@ api: {}
# #
# insecure: true # insecure: true
# Enabled Dashboard # Enabled Dashboard
# #
# Optional # Optional
# Default: true # Default: true
# #
# dashboard: true # dashboard: true
################################################################ ################################################################
# Ping configuration # Ping configuration
@ -129,11 +133,11 @@ api: {}
# Enable ping # Enable ping
#ping: #ping:
# Name of the related entry point # Name of the related entry point
# #
# Optional # Optional
# Default: "traefik" # Default: "traefik"
# #
# entryPoint: traefik # entryPoint: traefik
################################################################ ################################################################
@ -155,7 +159,7 @@ providers:
# Optional # Optional
# Default: "Host(`{{ normalize .Name }}`)" # Default: "Host(`{{ normalize .Name }}`)"
# #
# defaultRule: Host(`{{ normalize .Name }}.docker.localhost`) # defaultRule: Host(`{{ normalize .Name }}.docker.localhost`)
# Expose containers by default in traefik # Expose containers by default in traefik
# #