From 90c27ca039581a066e7962ceee854251f2d7062a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Dere=C5=BEi=C4=87?= Date: Thu, 8 Jan 2026 14:54:41 +0100 Subject: [PATCH] fixed URLs --- docker-compose.yaml | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index d276d3e..4279243 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -40,10 +40,12 @@ services: environment: # Ensure Gitea generates correct URLs (adjust if you terminate TLS at Traefik) - - GITEA__server__DOMAIN=gitea.rezije.app - - GITEA__server__ROOT_URL=https://gitea.rezije.app/ + - GITEA__server__DOMAIN=gitea.budakova.org + - GITEA__server__ROOT_URL=https://gitea.budakova.org/ - GITEA__server__PROTOCOL=http # Traefik handles TLS - 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 - GITEA__packages__ENABLED=true # Set public URL detection to auto so that server @@ -56,12 +58,18 @@ services: - traefik.http.services.gitea.loadbalancer.server.port=3000 # Web Console - - traefik.http.routers.gitea.entrypoints=https - - traefik.http.routers.gitea.rule=Host(`gitea.rezije.app`) - - traefik.http.routers.gitea.tls=true - - traefik.http.routers.gitea.tls.certresolver=letsencrypt + - traefik.http.routers.gitea.rule=Host(`gitea.budakova.org`) + - traefik.http.routers.gitea.entrypoints=http # using `http` - see notes below + # Note: NOT using `https` entrypoint sincer CloudFlare does SSL offloading + # 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) + # 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.rule=Host(`registry.budakova.org`) && PathPrefix(`/v2`) - traefik.http.routers.gitea-registry.tls=true