enable https for forgejo
This commit is contained in:
parent
2db2f5172f
commit
5e5e16bafd
1 changed files with 4 additions and 2 deletions
|
@ -30,10 +30,12 @@ services:
|
|||
constraints:
|
||||
- "node.labels.forgejo == true"
|
||||
labels:
|
||||
- traefik.port=80
|
||||
- traefik.port=443
|
||||
- traefik.enable=true
|
||||
- traefik.http.routers.forgejo.entrypoints=web
|
||||
- traefik.http.routers.forgejo.entrypoints=websecure
|
||||
- traefik.http.routers.forgejo.rule=Host(`{{ git_domain }}`)
|
||||
- traefik.http.routers.forgejo.tls=true
|
||||
- traefik.http.routers.forgejo.tls.certresolver=letsencrypt
|
||||
- traefik.http.routers.forgejo.service=forgejo
|
||||
- traefik.http.services.forgejo.loadbalancer.server.port=3000
|
||||
- traefik.docker.network=traefik
|
||||
|
|
Reference in a new issue