Configure Home Assistant Podman container
The default Home Assistant configuration does not allow running a reverse proxy in front of the application. To enable this, the `use_x_forwarded_for` and `trusted_proxies` options have to be set. Since we want `/var/lib/homeassistant` to be a Btrfs subvolume, we can't simply include the necessary files in the correct location in the rootfs image. Instead, we must define "copy tree" (`C`) actions for `systemd-tmpfiles` to copy them from `/usr/share/factory`. Unfortunately, `systemd-tmpfiles` considers `v` and `C` actions conflicting, and thus will not copy the directory contents recursively. Each file has to be listed explicitly.
This commit is contained in:
8
yellow/overlay/etc/tmpfiles.d/homeassistant.conf
Normal file
8
yellow/overlay/etc/tmpfiles.d/homeassistant.conf
Normal file
@@ -0,0 +1,8 @@
|
||||
v /var/lib/homeassistant 0700 homeassistant homeassistant - -
|
||||
C /var/lib/homeassistant/automations.yaml - - - -
|
||||
C /var/lib/homeassistant/configuration.yaml - - - -
|
||||
C /var/lib/homeassistant/groups.yaml - - - -
|
||||
C /var/lib/homeassistant/http.yaml - - - -
|
||||
C /var/lib/homeassistant/scenes.yaml - - - -
|
||||
C /var/lib/homeassistant/scripts.yaml - - - -
|
||||
C /var/lib/homeassistant/secrets.yaml - - - -
|
||||
Reference in New Issue
Block a user