enable tls
This commit is contained in:
5
.gitignore
vendored
5
.gitignore
vendored
@@ -1,4 +1,5 @@
|
|||||||
docs/build
|
docs/build
|
||||||
log/*.log
|
traefik/log/*.log
|
||||||
log/*.gz
|
traefik/log/*.gz
|
||||||
|
traefik/tls/*.json
|
||||||
.local
|
.local
|
||||||
|
|||||||
@@ -17,8 +17,9 @@ services:
|
|||||||
- 8080:8080
|
- 8080:8080
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||||
- ./traefik:/etc/traefik:ro
|
- ./traefik/etc:/etc/traefik:ro
|
||||||
- ./log:/var/log/traefik:rw
|
- ./traefik/log:/var/log/traefik
|
||||||
|
- ./traefik/tls:/letsencrypt
|
||||||
|
|
||||||
nginx:
|
nginx:
|
||||||
image: nginx:latest
|
image: nginx:latest
|
||||||
@@ -27,6 +28,7 @@ services:
|
|||||||
- traefik.http.routers.rskio.entrypoints=websecure
|
- traefik.http.routers.rskio.entrypoints=websecure
|
||||||
- traefik.http.routers.rskio.rule=Host(`rskio.com`)
|
- traefik.http.routers.rskio.rule=Host(`rskio.com`)
|
||||||
- traefik.http.routers.rskio.tls=true
|
- traefik.http.routers.rskio.tls=true
|
||||||
|
- traefik.http.routers.rskio.tls.certresolver=rskio_certresolver
|
||||||
- traefik.http.routers.rskio.service=rskio@docker
|
- traefik.http.routers.rskio.service=rskio@docker
|
||||||
- traefik.http.services.rskio.loadbalancer.server.port=80
|
- traefik.http.services.rskio.loadbalancer.server.port=80
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
@@ -15,6 +15,13 @@ entryPoints:
|
|||||||
http3:
|
http3:
|
||||||
advertisedPort: 443
|
advertisedPort: 443
|
||||||
|
|
||||||
|
certificatesresolvers:
|
||||||
|
rskio_certresolver:
|
||||||
|
acme:
|
||||||
|
tlschallenge: true
|
||||||
|
email: rskntroot@gmail.com
|
||||||
|
storage: /letsencrypt/acme.json
|
||||||
|
|
||||||
log:
|
log:
|
||||||
level: INFO
|
level: INFO
|
||||||
format: json
|
format: json
|
||||||
Reference in New Issue
Block a user