offload caddyfiles and configure reverse proxy for homeassistant

This commit is contained in:
Mika Bomm 2024-08-04 13:39:48 +02:00
parent 72f59bcaca
commit 88e298b03d
8 changed files with 51 additions and 21 deletions

2
.gitignore vendored
View file

@ -21,3 +21,5 @@
!**/data/config.json
# Homeassistant
!**/homeassistant/config/configuration.yaml

View file

@ -30,26 +30,6 @@
# Import service-specific Caddyfiles
import /etc/caddy/services/*.caddy
code-server.mini1.docker.local {
import logging
reverse_proxy 192.168.178.230:8443
}
ddns.mini1.docker.local {
import logging
reverse_proxy 192.168.178.230:55555
}
doozle.mini1.docker.local {
import logging
reverse_proxy 192.168.178.230:60345
}
ha.mini1.docker.local {
import logging
reverse_proxy 192.168.178.230:8123
}
mini1.docker.local {
reverse_proxy 192.168.178.230:55556
}

View file

@ -0,0 +1,6 @@
# External
# Internal
ddns.mini1.docker.local {
reverse_proxy 192.168.178.230:55555
}

View file

@ -0,0 +1,6 @@
# External
# Internal
doozle.mini1.docker.local {
reverse_proxy 192.168.178.230:60345
}

View file

@ -0,0 +1,6 @@
# External
# Internal
ha.mini1.docker.local {
reverse_proxy 192.168.178.230:8123
}

View file

@ -1,3 +1,8 @@
pdf2.mixel.cloud {
reverse_proxy 192.168.178.230:55556
}
}
pdf.mini1.docker.local {
reverse_proxy 192.168.178.230:55556
}

View file

@ -0,0 +1,6 @@
# External
# Internal
code-server.mini1.docker.local {
reverse_proxy 192.168.178.230:8443
}

View file

@ -0,0 +1,19 @@
# Loads default set of integrations. Do not remove.
default_config:
# Load frontend themes from the themes folder
frontend:
themes: !include_dir_merge_named themes
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
# Reverse proxy configuration
http:
use_x_forwarded_for: true
trusted_proxies:
- 192.168.178.0/24 # Local IP
- 172.27.0.0/24 # Docker Network IP Subnet