fixed URLs
This commit is contained in:
@@ -40,10 +40,12 @@ services:
|
|||||||
|
|
||||||
environment:
|
environment:
|
||||||
# Ensure Gitea generates correct URLs (adjust if you terminate TLS at Traefik)
|
# Ensure Gitea generates correct URLs (adjust if you terminate TLS at Traefik)
|
||||||
- GITEA__server__DOMAIN=gitea.rezije.app
|
- GITEA__server__DOMAIN=gitea.budakova.org
|
||||||
- GITEA__server__ROOT_URL=https://gitea.rezije.app/
|
- GITEA__server__ROOT_URL=https://gitea.budakova.org/
|
||||||
- GITEA__server__PROTOCOL=http # Traefik handles TLS
|
- GITEA__server__PROTOCOL=http # Traefik handles TLS
|
||||||
- GITEA__server__SSH_PORT=2222
|
- GITEA__server__SSH_PORT=2222
|
||||||
|
- GITEA__server__SSH_DOMAIN=git.budakova.org # CloudFlare tunnel hostname for SSH access (must not colide with web console hostname)
|
||||||
|
|
||||||
# Enable Docker Registry support
|
# Enable Docker Registry support
|
||||||
- GITEA__packages__ENABLED=true
|
- GITEA__packages__ENABLED=true
|
||||||
# Set public URL detection to auto so that server
|
# Set public URL detection to auto so that server
|
||||||
@@ -56,12 +58,18 @@ services:
|
|||||||
- traefik.http.services.gitea.loadbalancer.server.port=3000
|
- traefik.http.services.gitea.loadbalancer.server.port=3000
|
||||||
|
|
||||||
# Web Console
|
# Web Console
|
||||||
- traefik.http.routers.gitea.entrypoints=https
|
- traefik.http.routers.gitea.rule=Host(`gitea.budakova.org`)
|
||||||
- traefik.http.routers.gitea.rule=Host(`gitea.rezije.app`)
|
- traefik.http.routers.gitea.entrypoints=http # using `http` - see notes below
|
||||||
- traefik.http.routers.gitea.tls=true
|
# Note: NOT using `https` entrypoint sincer CloudFlare does SSL offloading
|
||||||
- traefik.http.routers.gitea.tls.certresolver=letsencrypt
|
# Also CloudFlare tunnel rejects Let's Encrypt cert since it sees
|
||||||
|
# the server as running at https://10.10.1.200:443 and NOT as `gitea.budakova.org`
|
||||||
|
# - traefik.http.routers.gitea.entrypoints=https
|
||||||
|
# - traefik.http.routers.gitea.tls=true
|
||||||
|
# - traefik.http.routers.gitea.tls.certresolver=letsencrypt
|
||||||
|
|
||||||
# Registry (only /v2)
|
# Registry (only /v2)
|
||||||
|
# Not: here we can use `https` since it's not published via CloudFlare
|
||||||
|
# but via local IP address
|
||||||
- traefik.http.routers.gitea-registry.entrypoints=https
|
- traefik.http.routers.gitea-registry.entrypoints=https
|
||||||
- traefik.http.routers.gitea-registry.rule=Host(`registry.budakova.org`) && PathPrefix(`/v2`)
|
- traefik.http.routers.gitea-registry.rule=Host(`registry.budakova.org`) && PathPrefix(`/v2`)
|
||||||
- traefik.http.routers.gitea-registry.tls=true
|
- traefik.http.routers.gitea-registry.tls=true
|
||||||
|
|||||||
Reference in New Issue
Block a user