offload caddyfiles and configure reverse proxy for homeassistant
This commit is contained in:
parent
72f59bcaca
commit
88e298b03d
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -21,3 +21,5 @@
|
|||
!**/data/config.json
|
||||
|
||||
|
||||
# Homeassistant
|
||||
!**/homeassistant/config/configuration.yaml
|
|
@ -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
|
||||
}
|
||||
|
|
6
caddy/services/ddns-updater.caddy
Normal file
6
caddy/services/ddns-updater.caddy
Normal file
|
@ -0,0 +1,6 @@
|
|||
# External
|
||||
|
||||
# Internal
|
||||
ddns.mini1.docker.local {
|
||||
reverse_proxy 192.168.178.230:55555
|
||||
}
|
6
caddy/services/doozle.caddy
Normal file
6
caddy/services/doozle.caddy
Normal file
|
@ -0,0 +1,6 @@
|
|||
# External
|
||||
|
||||
# Internal
|
||||
doozle.mini1.docker.local {
|
||||
reverse_proxy 192.168.178.230:60345
|
||||
}
|
6
caddy/services/homeassistant.caddy
Normal file
6
caddy/services/homeassistant.caddy
Normal file
|
@ -0,0 +1,6 @@
|
|||
# External
|
||||
|
||||
# Internal
|
||||
ha.mini1.docker.local {
|
||||
reverse_proxy 192.168.178.230:8123
|
||||
}
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
6
caddy/services/vscode-server.caddy
Normal file
6
caddy/services/vscode-server.caddy
Normal file
|
@ -0,0 +1,6 @@
|
|||
# External
|
||||
|
||||
# Internal
|
||||
code-server.mini1.docker.local {
|
||||
reverse_proxy 192.168.178.230:8443
|
||||
}
|
19
homeassistant/homeassistant/config/configuration.yaml
Normal file
19
homeassistant/homeassistant/config/configuration.yaml
Normal 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
|
Loading…
Reference in a new issue