Go to file
Dustin 670c1f7561 yellow: Install/configure nginx
We're going to use *nginx* as the reverse proxy in front of Home
Assistant, as well as the web consoles for Zigbee2MQTT and ZWaveJS2MQTT.
It will provide TLS termination for all of these applications.

Since *nginx* will not start without a certificate and private key file
for HTTPS, the *gen-nginx-cert.service* systemd unit generates a
self-signed certificate if one does not already exist.  This ensures
that *nginx* can start by default, but still allows the administrator to
replace the certificate with a trusted one later.

The *nginx* container image has symlinks at `/var/log/nginx/error.log`
and `/var/log/nginx/access.log`, pointing to `/dev/stderr` and
`/dev/stdout`, respectively.  The intent here is to send all log
messages to the container runtime.  Unfortunately, when the the
container is managed by Podman from a systemd unit, the standard output
and standard error streams are connected to the systemd journal via a
UNIX socket.  As a result, the `/dev/stdout` and `/dev/stderr`
pseudo-files cannot be "opened" like normal files or pipes.  Thus, to
forward nginx's logs to the systemd journal correctly, we have to do a
bit of trickery.  For the error log at least, setting `error_log stderr`
works well; nginx simply writes messages to the existing file
descriptor.  Unfortunately, the access log has no such mechanism.  For
that, we use nginx's syslog capabilities.  The `/dev/log` socket is
bind-mounted into the container, and nginx is configured to connect to
it.
2023-03-30 09:23:47 -05:00
overlay init-storage: Write output to system console 2023-03-29 18:44:45 -05:00
patches/ebuilds patches/ebuilds: podman: Fix cross compiling 2023-03-26 12:12:41 -05:00
repos SELinux: Allow init-storage to set permissions 2023-03-30 09:03:45 -05:00
yellow yellow: Install/configure nginx 2023-03-30 09:23:47 -05:00
.gitignore build: Implement CONFIGDIR setting 2023-03-15 21:12:04 -05:00
.gitmodules wip: build u-boot with Portage 2023-03-12 12:47:36 -05:00
Makefile Support semanage.mods 2023-03-30 09:23:44 -05:00
README.md Initial commit 2023-02-13 23:24:36 -06:00
build-grub.sh build: Implement CONFIGDIR setting 2023-03-15 21:12:04 -05:00
build-host-tools.sh Separate base packages from customizations 2023-03-21 19:39:33 -05:00
build-kernel.sh build: Implement CONFIGDIR setting 2023-03-15 21:12:04 -05:00
build-rootfs.sh Support semanage.mods 2023-03-30 09:23:44 -05:00
build-squashfs.sh build-squashfs: Allow defining pseudo files 2023-03-30 09:03:45 -05:00
build-update.sh build: Implement CONFIGDIR setting 2023-03-15 21:12:04 -05:00
build.packages Separate base packages from customizations 2023-03-21 19:39:33 -05:00
build.sh build: Fix building binpkgs for BDEPENDs 2023-03-29 18:44:45 -05:00
genimage.cfg Support external build directory 2023-03-03 12:36:15 -06:00
genimage.sh build: Implement CONFIGDIR setting 2023-03-15 21:12:04 -05:00
grub.cfg Initial commit 2023-02-13 23:24:36 -06:00
host-tools.packages Separate base packages from customizations 2023-03-21 19:39:33 -05:00
install-update.sh install-update: Fix error message in die function 2023-03-08 11:12:00 -06:00
install.packages Separate base packages from customizations 2023-03-21 19:39:33 -05:00
ocivm.sh build: Implement CONFIGDIR setting 2023-03-15 21:12:04 -05:00
podman-build.sh Add start-container.sh script 2023-02-21 09:58:18 -06:00
post-build.sh Move post-build script to configdir 2023-03-21 19:40:51 -05:00
prepare.sh build: Implement CONFIGDIR setting 2023-03-15 21:12:04 -05:00
rebuild-pkg.sh build: Fix building binpkgs for BDEPENDs 2023-03-29 18:44:45 -05:00
semanage.mods Support semanage.mods 2023-03-30 09:23:44 -05:00
setup-local-repo.sh setup-local-repo: Fix multiple patches per ebuild 2023-03-21 19:42:35 -05:00
squashfs.exclude Configure Home Assistant Podman container 2023-03-30 08:56:14 -05:00
start-container.sh build: Implement CONFIGDIR setting 2023-03-15 21:12:04 -05:00
vm-build.sh vm-build: Add script to build in a microvm 2023-03-08 11:12:00 -06:00

README.md

Errors

SWIOTLB Buffer

OF: reserved mem: failed to allocate memory for node … Can not allocate SWIOTLB buffer earlier and can't now provide you with the DMA bounce buffer

Ensure start_x=1 is in config.txt and start_file/fixup_file are not specified.

U-Boot: Overwrite Reserved Memory

** Reading file would overwrite reserved memory **

Set CONFIG_LMB_MAX_REGIONS=16 in u-boot/.config