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"