From 99f653b84ed73d3fd27131fa1fc5a822e8998115 Mon Sep 17 00:00:00 2001 From: Mathieu Lecoiffier Date: Mon, 21 Oct 2024 05:47:27 +0000 Subject: [PATCH] add gitea in trafix --- traefik/rules.yaml | 19 +++++++++++-------- traefik/traefik.yml | 3 +++ 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/traefik/rules.yaml b/traefik/rules.yaml index a80e8ca..ee59382 100644 --- a/traefik/rules.yaml +++ b/traefik/rules.yaml @@ -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: diff --git a/traefik/traefik.yml b/traefik/traefik.yml index 3786053..dbe562e 100644 --- a/traefik/traefik.yml +++ b/traefik/traefik.yml @@ -14,6 +14,9 @@ entryPoints: dot: address: ":853" + ssh: + address: ":2222" + certificatesResolvers: myresolver: acme: