chore(app): externalize ssh domain and middleware fallbacks into app
This commit is contained in:
1 parent
e4bdc75912
commit
9584d5ee52
2 files changed
+4
-2
No files matched your search
@@ -7,6 +7,8 @@ visible: true
|
||||
auth: false
|
||||
networks:
|
||||
- proxy-net
|
||||
env:
|
||||
SSH_DOMAIN: "gitea.roadtotech.me"
|
||||
homepage:
|
||||
title: "Gitea"
|
||||
group: "Development & AI"
|
||||
|
||||
+2
-2
@@ -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"
|
||||
|
||||
|
||||
Reference in new issue
Block a user