feature: Added https support to traefik

This commit is contained in:
Torben Brenner 2022-03-02 09:45:33 +01:00
parent c9709f719d
commit 1e69c09b9b
3 changed files with 13 additions and 0 deletions

6
certs/README.md Normal file
View File

@ -0,0 +1,6 @@
Drop in directory for certificates.
You can generate the necessary certs with:
``` shell
openssl req -x509 -newkey rsa:4096 -keyout certs/traefik.key -out certs/treafik.crt -days 365
```

View File

@ -9,11 +9,14 @@ services:
- --entrypoints.web.address=:80
- --entrypoints.web-secure.address=:443
- --providers.docker=true
- --providers.file.directory=/etc/traefik/dynamic_conf
ports:
- 80:80
- 443:443
- 8080:8080
volumes:
- ../certs:/tools/certs
- ./traefik.yml:/etc/traefik/dynamic_conf/traefik.yml:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
- ../auth/:/auth
extra_hosts:

4
dktk-fed/traefik.yml Normal file
View File

@ -0,0 +1,4 @@
tls:
certificates:
- certFile: /tools/certs/traefik.crt
keyFile: /tools/certs/traefik.key