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

View File

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