34 lines
No EOL
822 B
YAML
34 lines
No EOL
822 B
YAML
tls:
|
|
stores:
|
|
default:
|
|
defaultCertificate:
|
|
certFile: "/etc/traefik/certs/mealcraft.com.crt"
|
|
keyFile: "/etc/traefik/certs/mealcraft.com.key"
|
|
options:
|
|
default:
|
|
minVersion: "VersionTLS13"
|
|
|
|
# Solution found here for http to https => https://community.traefik.io/t/global-http-to-https-redirect-in-v2/1658
|
|
|
|
http:
|
|
routers:
|
|
http-catchall:
|
|
rule: "hostregexp(`{host:.+}`)"
|
|
entryPoints:
|
|
- "web"
|
|
middlewares:
|
|
- "redirect-to-https@file"
|
|
service: "never-called"
|
|
middlewares:
|
|
redirect-to-https:
|
|
redirectScheme:
|
|
scheme: "https"
|
|
permanent: true
|
|
dashboard-auth:
|
|
basicAuth:
|
|
usersFile: "/etc/traefik/users"
|
|
services:
|
|
never-called:
|
|
loadbalancer:
|
|
servers:
|
|
url: "http://192.168.0.1" |