From e0f68b24d03366065eadcee1f2b3242d586c50c8 Mon Sep 17 00:00:00 2001 From: Taylor Helsper Date: Thu, 9 Jun 2022 19:15:20 -0500 Subject: [PATCH] Fix LNDg over HTTPS --- .../usr/share/mynode_apps/lndg/scripts/install_lndg.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rootfs/standard/usr/share/mynode_apps/lndg/scripts/install_lndg.sh b/rootfs/standard/usr/share/mynode_apps/lndg/scripts/install_lndg.sh index 0976e9e8..397b34cc 100644 --- a/rootfs/standard/usr/share/mynode_apps/lndg/scripts/install_lndg.sh +++ b/rootfs/standard/usr/share/mynode_apps/lndg/scripts/install_lndg.sh @@ -32,6 +32,10 @@ sed -i 's|/var/log|/opt/mynode/lndg/logs|g' .venv/supervisord.conf sed -i 's|/var/supervisord.pid|/tmp/supervisord.pid|g' .venv/supervisord.conf sed -i 's|"python|".venv/bin/python|g' .venv/supervisord.conf +# Patch Django +echo "" >> lndg/settings.py +echo "SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')" >> lndg/settings.py + # Load initial data .venv/bin/python jobs.py