Update root url to redirect to /moeny

This commit is contained in:
moeny-matt 2025-04-04 15:09:53 -04:00
parent 0b61e7f1d7
commit df02086285
3 changed files with 15 additions and 2 deletions

4
.gitignore vendored
View File

@ -1 +1,3 @@
.env
.env
app.ini
.DS_Store

View File

@ -17,3 +17,7 @@ Gitea is a lightweight, self-hosted Git service written in Go. It's designed to
- API support
- Two-factor authentication
- Email notifications
## [Deploy on Docker](https://docs.gitea.com/installation/install-with-docker-rootless)
## [Configuration Cheat Sheet](https://docs.gitea.com/next/administration/config-cheat-sheet)

View File

@ -72,7 +72,14 @@ services:
- db
labels:
- "traefik.enable=true"
- "traefik.http.routers.gitea.rule=Host(`${DOMAIN:?DOMAIN not set}`)"
- "traefik.http.routers.gitea-root.rule=Host(`${DOMAIN:?DOMAIN not set}`) && Path(`/`)"
- "traefik.http.routers.gitea-root.entrypoints=websecure"
- "traefik.http.routers.gitea-root.tls=true"
- "traefik.http.routers.gitea-root.tls.certresolver=le"
- "traefik.http.routers.gitea-root.middlewares=redirect-to-moeny"
- "traefik.http.middlewares.redirect-to-moeny.redirectregex.regex=^https://([^/]+)/$$"
- "traefik.http.middlewares.redirect-to-moeny.redirectregex.replacement=https://$$1/moeny/"
- "traefik.http.routers.gitea.rule=Host(`${DOMAIN:?DOMAIN not set}`) && !Path(`/`)"
- "traefik.http.routers.gitea.entrypoints=websecure"
- "traefik.http.routers.gitea.tls=true"
- "traefik.http.routers.gitea.tls.certresolver=le"