chore(app): externalize ssh domain and middleware fallbacks into app

This commit is contained in:
kiskaadee committed 2026-09-03 23:25:03 -05:00
1 parent e4bdc75912
commit 9584d5ee52
2 files changed
+4 -2

No files matched your search

+2
View File
@@ -7,6 +7,8 @@ visible: true
auth: false auth: false
networks: networks:
- proxy-net - proxy-net
env:
SSH_DOMAIN: "gitea.roadtotech.me"
homepage: homepage:
title: "Gitea" title: "Gitea"
group: "Development & AI" group: "Development & AI"
+2 -2
View File
@@ -23,12 +23,12 @@ services:
- "traefik.http.routers.${CONTAINER_NAME:-gitea}.rule=Host(`${SERVICE_DOMAIN}`)" - "traefik.http.routers.${CONTAINER_NAME:-gitea}.rule=Host(`${SERVICE_DOMAIN}`)"
- "traefik.http.routers.${CONTAINER_NAME:-gitea}.entrypoints=websecure" - "traefik.http.routers.${CONTAINER_NAME:-gitea}.entrypoints=websecure"
- "traefik.http.routers.${CONTAINER_NAME:-gitea}.tls=true" - "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" - "traefik.http.routers.${CONTAINER_NAME:-gitea}.service=${CONTAINER_NAME:-gitea}-svc"
# HTTP to HTTPS Redirect Router # HTTP to HTTPS Redirect Router
- "traefik.http.routers.${CONTAINER_NAME:-gitea}-red.rule=Host(`${SERVICE_DOMAIN}`)" - "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.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 # Service definition
- "traefik.http.services.${CONTAINER_NAME:-gitea}-svc.loadbalancer.server.port=3000" - "traefik.http.services.${CONTAINER_NAME:-gitea}-svc.loadbalancer.server.port=3000"