add gitea in trafix

This commit is contained in:
Mathieu Lecoiffier 2024-10-21 05:47:27 +00:00
parent 3b356a1f8c
commit 99f653b84e
2 changed files with 14 additions and 8 deletions

View File

@ -26,11 +26,10 @@ http:
tls:
certResolver: myresolver
router-gitea:
rule: "Host(`huguettes.freeboxos.fr`) && PathPrefix(`/gitea`)"
rule: "Host(`gitea.huguette.ovh`)"
service: "service-gitea"
tls: {}
middlewares:
- stripprefixregex
tls:
certResolver: myresolver
router-firefly:
rule: "Host(`firefly.huguette.ovh`)"
service: "service-firefly"
@ -197,10 +196,6 @@ http:
regex: "^/firefly/(.*)"
replacement: "/$1"
redirectregex-gitea:
redirectRegex:
regex: "^https://(.*)/(.*)"
replacement: "https://huguettes.freeboxos.fr/gitea/$2"
replacepathregex-homepage:
replacepathregex:
regex: "^/home/(.*)"
@ -214,11 +209,19 @@ tcp:
entrypoints: dot
tls:
certResolver: myresolver
router-adguardhome-tls:
rule: "HostSNI(`gitea.huguette.ovh`)"
service: "service-gitea-ssh"
entrypoints: ssh
services:
service-adguardhome-tls:
loadBalancer:
servers:
- address: "192.168.1.100:53"
service-gitea-ssh:
loadBalancer:
servers:
- address: "192.168.1.100:222"
tls:
stores:

View File

@ -14,6 +14,9 @@ entryPoints:
dot:
address: ":853"
ssh:
address: ":2222"
certificatesResolvers:
myresolver:
acme: