mirror of
https://github.com/getlago/lago.git
synced 2025-01-03 13:30:02 +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
|
||||
labels:
|
||||
- "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.tls.certresolver=lagoresolver"
|
||||
- "traefik.http.services.traefik.loadbalancer.server.port=8080"
|
||||
@ -100,6 +102,7 @@ services:
|
||||
retries: 5
|
||||
labels:
|
||||
# SSL
|
||||
# - "traefik.http.routers.api.tls.certresolver=lagoresolver"
|
||||
# - "traefik.http.routers.api.entrypoints=websecure"
|
||||
- "traefik.http.routers.api.entrypoints=web"
|
||||
- "traefik.http.routers.api.priority=100"
|
||||
@ -128,6 +131,9 @@ services:
|
||||
labels:
|
||||
- "traefik.http.routers.front.priority=50"
|
||||
- "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.rule=Host(`${LAGO_DOMAIN:-localhost}`) && PathPrefix(`/`)"
|
||||
- "traefik.http.services.front.loadbalancer.server.port=80"
|
||||
|
Loading…
Reference in New Issue
Block a user