Fix LNDg over HTTPS

This commit is contained in:
Taylor Helsper 2022-06-09 19:15:20 -05:00
parent 325228d16b
commit e0f68b24d0

View File

@ -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|/var/supervisord.pid|/tmp/supervisord.pid|g' .venv/supervisord.conf
sed -i 's|"python|".venv/bin/python|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 # Load initial data
.venv/bin/python jobs.py .venv/bin/python jobs.py