mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-10-21 18:55:17 +00:00
feat(mealie): add reverse proxy auth settings to mealie.env (#18006)
* feat(mealie): add reverse proxy auth settings to mealie.env * fix(mealie): remove run-time note, documented on website instead * fix(mealie): use plain EOF heredoc delimiter
This commit is contained in:
1 parent
8cf7f29875
commit
25628a6651
2 files changed
+20
No files matched your search
@@ -58,6 +58,18 @@ exec uv run mealie
|
||||
STARTEOF
|
||||
fi
|
||||
chmod +x /opt/mealie/start.sh
|
||||
if ! grep -q "REVERSE_PROXY_AUTH_ENABLED" /opt/mealie/mealie.env; then
|
||||
cat <<EOF >>/opt/mealie/mealie.env
|
||||
|
||||
# Reverse proxy auth (Mealie v3.29.0+). Disabled by default.
|
||||
# To enable: set REVERSE_PROXY_AUTH_ENABLED=true, set a secret, then restart mealie.
|
||||
# REVERSE_PROXY_AUTH_ENABLED=false
|
||||
# REVERSE_PROXY_AUTH_HEADER=X-Forwarded-User
|
||||
# REVERSE_PROXY_AUTH_SIGNUP_ENABLED=false
|
||||
# REVERSE_PROXY_AUTH_SECRET=
|
||||
# REVERSE_PROXY_AUTH_SECRET_HEADER=X-Mealie-Reverse-Proxy-Secret
|
||||
EOF
|
||||
fi
|
||||
msg_ok "Configuration restored"
|
||||
|
||||
msg_info "Installing Python Dependencies with uv"
|
||||
|
||||
@@ -98,6 +98,14 @@ PRODUCTION=true
|
||||
HOST=0.0.0.0
|
||||
PORT=9000
|
||||
BASE_URL=http://${LOCAL_IP}:9000
|
||||
|
||||
# Reverse proxy auth (Mealie v3.29.0+). Disabled by default.
|
||||
# To enable: set REVERSE_PROXY_AUTH_ENABLED=true, set a secret, then restart mealie.
|
||||
# REVERSE_PROXY_AUTH_ENABLED=false
|
||||
# REVERSE_PROXY_AUTH_HEADER=X-Forwarded-User
|
||||
# REVERSE_PROXY_AUTH_SIGNUP_ENABLED=false
|
||||
# REVERSE_PROXY_AUTH_SECRET=
|
||||
# REVERSE_PROXY_AUTH_SECRET_HEADER=X-Mealie-Reverse-Proxy-Secret
|
||||
EOF
|
||||
msg_ok "Wrote Environment File"
|
||||
|
||||
|
||||
Reference in new issue
Block a user