Oliver Davies
34174d22fe
This commit adds HTTPS and SSL support via `mkcert` to projects using the Traefik proxy. This does require changing the URLs from `*.localhost` to `*.docker.localhost`, but this is something that can easily be done by updating the template files in Build Configs. Based on https://github.com/Heziode/traefik-v2-https-ssl-localhost.
16 lines
335 B
YAML
16 lines
335 B
YAML
http:
|
|
routers:
|
|
traefik:
|
|
rule: "Host(`traefik.docker.localhost`)"
|
|
service: "api@internal"
|
|
tls:
|
|
domains:
|
|
- main: "docker.localhost"
|
|
sans:
|
|
- "*.docker.localhost"
|
|
|
|
tls:
|
|
certificates:
|
|
- certFile: "/etc/certs/local-cert.pem"
|
|
keyFile: "/etc/certs/local-key.pem"
|