Update root url to redirect to /moeny
This commit is contained in:
parent
0b61e7f1d7
commit
df02086285
4
.gitignore
vendored
4
.gitignore
vendored
@ -1 +1,3 @@
|
||||
.env
|
||||
.env
|
||||
app.ini
|
||||
.DS_Store
|
@ -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)
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user