mirror of
https://github.com/getlago/lago.git
synced 2025-01-05 13:08:00 +07:00
feat(traefik): add optional TLS cert resolver for API and frontend
This commit is contained in:
parent
783de42cb7
commit
b8438bae64
@ -73,6 +73,8 @@ services:
|
|||||||
- traefik_config:/traefik
|
- traefik_config:/traefik
|
||||||
labels:
|
labels:
|
||||||
- "traefik.http.routers.traefik.rule=Host(`${LAGO_DOMAIN:-localhost}`)"
|
- "traefik.http.routers.traefik.rule=Host(`${LAGO_DOMAIN:-localhost}`)"
|
||||||
|
# SSL
|
||||||
|
# - "traefik.http.routers.api.entrypoints=websecure"
|
||||||
- "traefik.http.routers.traefik.entrypoints=web"
|
- "traefik.http.routers.traefik.entrypoints=web"
|
||||||
- "traefik.http.routers.traefik.tls.certresolver=lagoresolver"
|
- "traefik.http.routers.traefik.tls.certresolver=lagoresolver"
|
||||||
- "traefik.http.services.traefik.loadbalancer.server.port=8080"
|
- "traefik.http.services.traefik.loadbalancer.server.port=8080"
|
||||||
@ -100,6 +102,7 @@ services:
|
|||||||
retries: 5
|
retries: 5
|
||||||
labels:
|
labels:
|
||||||
# SSL
|
# SSL
|
||||||
|
# - "traefik.http.routers.api.tls.certresolver=lagoresolver"
|
||||||
# - "traefik.http.routers.api.entrypoints=websecure"
|
# - "traefik.http.routers.api.entrypoints=websecure"
|
||||||
- "traefik.http.routers.api.entrypoints=web"
|
- "traefik.http.routers.api.entrypoints=web"
|
||||||
- "traefik.http.routers.api.priority=100"
|
- "traefik.http.routers.api.priority=100"
|
||||||
@ -128,6 +131,9 @@ services:
|
|||||||
labels:
|
labels:
|
||||||
- "traefik.http.routers.front.priority=50"
|
- "traefik.http.routers.front.priority=50"
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
|
# SSL
|
||||||
|
# - "traefik.http.routers.api.tls.certresolver=lagoresolver"
|
||||||
|
# - "traefik.http.routers.api.entrypoints=websecure"
|
||||||
- "traefik.http.routers.front.entrypoints=web"
|
- "traefik.http.routers.front.entrypoints=web"
|
||||||
- "traefik.http.routers.front.rule=Host(`${LAGO_DOMAIN:-localhost}`) && PathPrefix(`/`)"
|
- "traefik.http.routers.front.rule=Host(`${LAGO_DOMAIN:-localhost}`) && PathPrefix(`/`)"
|
||||||
- "traefik.http.services.front.loadbalancer.server.port=80"
|
- "traefik.http.services.front.loadbalancer.server.port=80"
|
||||||
|
Loading…
Reference in New Issue
Block a user