From 2d66692b2616853937573fd0ca5848bbafa7b7ef Mon Sep 17 00:00:00 2001 From: Steve Dudenhoeffer Date: Mon, 8 Jan 2024 20:49:59 +0000 Subject: [PATCH] added example custom entries for traefik --- pi/traefik/custom/example-tls.yml | 20 ++++++++++++++++++++ pi/traefik/custom/example.yml | 13 +++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 pi/traefik/custom/example-tls.yml create mode 100644 pi/traefik/custom/example.yml diff --git a/pi/traefik/custom/example-tls.yml b/pi/traefik/custom/example-tls.yml new file mode 100644 index 0000000..01ef585 --- /dev/null +++ b/pi/traefik/custom/example-tls.yml @@ -0,0 +1,20 @@ +http: + routers: + example-tls-router: + rule: "Host(`example-tls.domain.tld`)" + service: example-tls-service + # Optionally, you can add TLS configuration here if your router is serving HTTPS + + services: + example-tls-service: + loadBalancer: + servers: + - url: "https://192.168.0.146" + passHostHeader: true + # Skip TLS verification for the self-signed certificate + serversTransport: "example-tls-servers-transport" + + # Define the serversTransport to skip TLS verification + serversTransports: + example-tls-servers-transport: + insecureSkipVerify: true diff --git a/pi/traefik/custom/example.yml b/pi/traefik/custom/example.yml new file mode 100644 index 0000000..7fd2c73 --- /dev/null +++ b/pi/traefik/custom/example.yml @@ -0,0 +1,13 @@ + +http: + routers: + example-router: + rule: "Host(`example.domain.tld`)" + service: example-service + + services: + example-service: + loadBalancer: + servers: + - url: "http://192.168.0.197:8081" + passHostHeader: true \ No newline at end of file