Fixed traefik and certs
This commit is contained in:
parent
8e21d5e085
commit
ab33a03a51
|
@ -0,0 +1,3 @@
|
||||||
|
This directory should contain your basic auth files. For each project you need to create a fil with the name of the project.
|
||||||
|
Add to the file your users and passwords.
|
||||||
|
you can generate a a user password combination with this site https://www.blitter.se/utils/basic-authentication-header-generator/
|
|
@ -2,5 +2,5 @@ Drop in directory for certificates.
|
||||||
You can generate the necessary certs with:
|
You can generate the necessary certs with:
|
||||||
|
|
||||||
``` shell
|
``` shell
|
||||||
openssl req -x509 -newkey rsa:4096 -keyout certs/traefik.key -out certs/treafik.crt -days 365
|
openssl req -x509 -newkey rsa:4096 -nodes -keyout certs/traefik.key -out certs/traefik.crt -days 365
|
||||||
```
|
```
|
||||||
|
|
|
@ -9,14 +9,15 @@ services:
|
||||||
- --entrypoints.web.address=:80
|
- --entrypoints.web.address=:80
|
||||||
- --entrypoints.web-secure.address=:443
|
- --entrypoints.web-secure.address=:443
|
||||||
- --providers.docker=true
|
- --providers.docker=true
|
||||||
- --providers.file.directory=/etc/traefik/dynamic_conf
|
- --providers.file.directory=/configuration/
|
||||||
|
- --providers.file.watch=true
|
||||||
ports:
|
ports:
|
||||||
- 80:80
|
- 80:80
|
||||||
- 443:443
|
- 443:443
|
||||||
- 8080:8080
|
- 8080:8080
|
||||||
volumes:
|
volumes:
|
||||||
- ../certs:/tools/certs
|
- ../certs:/tools/certs
|
||||||
- ./traefik.yml:/etc/traefik/dynamic_conf/traefik.yml:ro
|
- ../tools/traefik/:/configuration/
|
||||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||||
- ../auth/:/auth
|
- ../auth/:/auth
|
||||||
extra_hosts:
|
extra_hosts:
|
||||||
|
@ -31,6 +32,7 @@ services:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.http.routers.landing.rule=PathPrefix(`/`)"
|
- "traefik.http.routers.landing.rule=PathPrefix(`/`)"
|
||||||
- "traefik.http.services.landing.loadbalancer.server.port=80"
|
- "traefik.http.services.landing.loadbalancer.server.port=80"
|
||||||
|
- "traefik.http.routers.landing.tls=true"
|
||||||
|
|
||||||
blaze:
|
blaze:
|
||||||
image: "samply/blaze:0.15"
|
image: "samply/blaze:0.15"
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
# Specifying a certificate that will be used for matching requests
|
||||||
|
tls:
|
||||||
|
certificates:
|
||||||
|
- certFile: /tools/certs/traefik.crt
|
||||||
|
keyFile: /tools/certs/traefik.key
|
Loading…
Reference in New Issue