From 9584d5ee52aacde0c592cefa1d0147d729654a77 Mon Sep 17 00:00:00 2001 From: kiskaadee Date: Thu, 3 Sep 2026 23:25:03 -0500 Subject: [PATCH] chore(app): externalize ssh domain and middleware fallbacks into app --- app.yaml | 2 ++ docker-compose.yml | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app.yaml b/app.yaml index 983c2a4..ca40f4f 100644 --- a/app.yaml +++ b/app.yaml @@ -7,6 +7,8 @@ visible: true auth: false networks: - proxy-net +env: + SSH_DOMAIN: "gitea.roadtotech.me" homepage: title: "Gitea" group: "Development & AI" diff --git a/docker-compose.yml b/docker-compose.yml index 81cf1ac..1aa502c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -23,12 +23,12 @@ services: - "traefik.http.routers.${CONTAINER_NAME:-gitea}.rule=Host(`${SERVICE_DOMAIN}`)" - "traefik.http.routers.${CONTAINER_NAME:-gitea}.entrypoints=websecure" - "traefik.http.routers.${CONTAINER_NAME:-gitea}.tls=true" - - "traefik.http.routers.${CONTAINER_NAME:-gitea}.middlewares=${AUTH_MIDDLEWARE}" + - "traefik.http.routers.${CONTAINER_NAME:-gitea}.middlewares=${AUTH_MIDDLEWARE:-https-redirect@docker}" - "traefik.http.routers.${CONTAINER_NAME:-gitea}.service=${CONTAINER_NAME:-gitea}-svc" # HTTP to HTTPS Redirect Router - "traefik.http.routers.${CONTAINER_NAME:-gitea}-red.rule=Host(`${SERVICE_DOMAIN}`)" - "traefik.http.routers.${CONTAINER_NAME:-gitea}-red.entrypoints=web" - - "traefik.http.routers.${CONTAINER_NAME:-gitea}-red.middlewares=${HTTPS_REDIRECT_MIDDLEWARE}" + - "traefik.http.routers.${CONTAINER_NAME:-gitea}-red.middlewares=${HTTPS_REDIRECT_MIDDLEWARE:-https-redirect@docker}" # Service definition - "traefik.http.services.${CONTAINER_NAME:-gitea}-svc.loadbalancer.server.port=3000"