migrate to main proxy

This commit is contained in:
Kyattsukuro 2026-01-15 17:28:24 +01:00
parent 582aea9b4b
commit 2a1ee9968a
3 changed files with 24 additions and 2 deletions

View File

@ -10,8 +10,9 @@ services:
networks: networks:
- exposed - exposed
ports: ports:
- 7080:80 - 80:80
- 7443:443 - 443:443
- 2022:2022
environment: environment:
- HETZNER_API_TOKEN=${HETZNER_API_TOKEN} - HETZNER_API_TOKEN=${HETZNER_API_TOKEN}
- DUCKDNS_TOKEN=${DUCKDNS_TOKEN} - DUCKDNS_TOKEN=${DUCKDNS_TOKEN}

16
config/external.yml Normal file
View File

@ -0,0 +1,16 @@
http:
routers:
homeassistant:
service: homeassistant
rule: Host(`home.urmel.de`)
entryPoints:
- https
- http
tls: true
services:
homeassistant:
loadbalancer:
servers:
- url: "http://172.24.2.4:8123"
passHostHeader: true

View File

@ -3,6 +3,7 @@ api:
debug: true debug: true
entryPoints: entryPoints:
http: http:
asDefault: true
address: ":80" address: ":80"
http: http:
redirections: redirections:
@ -10,13 +11,17 @@ entryPoints:
to: https to: https
scheme: https scheme: https
https: https:
asDefault: true
address: ":443" address: ":443"
public_ssh:
address: ":2022"
serversTransport: serversTransport:
insecureSkipVerify: true insecureSkipVerify: true
providers: providers:
docker: docker:
endpoint: "unix:///var/run/docker.sock" endpoint: "unix:///var/run/docker.sock"
exposedByDefault: false exposedByDefault: false
network: traefik_exposed
file: file:
directory: /config directory: /config
# https://doc.traefik.io/traefik/reference/install-configuration/tls/certificate-resolvers/acme/ # https://doc.traefik.io/traefik/reference/install-configuration/tls/certificate-resolvers/acme/