added example custom entries for traefik

This commit is contained in:
Steve Dudenhoeffer 2024-01-08 20:49:59 +00:00
parent 69348652df
commit 2d66692b26
2 changed files with 33 additions and 0 deletions

View File

@ -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

View File

@ -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