This commit is contained in:
mathieu 2024-05-23 22:09:34 +02:00
parent bb247fec71
commit 1d34c58830

View File

@ -14,6 +14,7 @@ http:
certresolver: myresolver certresolver: myresolver
middlewares: middlewares:
- replacepathregex-vaultwarden - replacepathregex-vaultwarden
- redirectregex-vaultwarden
router-gitea: router-gitea:
rule: "Host(`huguettes.freeboxos.fr`) && Path(`/gitea`)" rule: "Host(`huguettes.freeboxos.fr`) && Path(`/gitea`)"
service: "service-gitea" service: "service-gitea"
@ -21,6 +22,7 @@ http:
certresolver: myresolver certresolver: myresolver
middlewares: middlewares:
- replacepathregex-gitea - replacepathregex-gitea
- redirectregex-gitea
services: services:
service-dsm: service-dsm:
@ -49,10 +51,18 @@ http:
replacepathregex: replacepathregex:
regex: "^/vaultwarden/(.*)" regex: "^/vaultwarden/(.*)"
replacement: "/$1" replacement: "/$1"
redirectregex-vaultwarden:
redirectRegex:
regex: "^https://huguettes.freeboxos.fr/(.*)"
replacement: "https://huguettes.freeboxos.fr/vaultwarden/${1}"
replacepathregex-gitea: replacepathregex-gitea:
replacepathregex: replacepathregex:
regex: "^/gitea/(.*)" regex: "^/gitea/(.*)"
replacement: "/$1" replacement: "/$1"
redirectregex-gitea:
redirectRegex:
regex: "^https://huguettes.freeboxos.fr/(.*)"
replacement: "https://huguettes.freeboxos.fr/gitea/${1}"
tls: tls:
stores: stores: