feat: native support for rootless container execution

This commit is contained in:
Jonathan Gilbert
2026-05-02 09:14:18 +10:00
parent ba4a6a53d7
commit 4359aca5bf
8 changed files with 34 additions and 5 deletions
@@ -65,6 +65,11 @@ function set_worker_processes() {
set_worker_processes
# NGINX cannot switch users if running rootless; strip the directive
if [ "$(id -u)" != "0" ]; then
sed -i '/^user root;/d' /usr/local/nginx/conf/nginx.conf || true
fi
# ensure the directory for ACME challenges exists
mkdir -p /etc/letsencrypt/www