Show proper external URL in Pandora, fixes #264

This commit is contained in:
Disassembler 2018-07-18 12:32:40 +02:00
parent a8c6339bfc
commit 5a32b94da1
Signed by: Disassembler
GPG Key ID: 524BD33A0EE29499
3 changed files with 8 additions and 1 deletions

View File

@ -37,6 +37,7 @@ else
fi
cp ${SOURCE_DIR}/srv/pandora/conf/gunicorn_config.py /srv/pandora/conf/gunicorn_config.py
envsubst <${SOURCE_DIR}/srv/pandora/conf/local_settings.py >/srv/pandora/conf/local_settings.py
cp ${SOURCE_DIR}/srv/pandora/update-url.sh /srv/pandora/update-url.sh
# Set "production values" (increases performance) only if the DEBUG environment variable is not set
if [ ${DEBUG:-0} -eq 0 ]; then

View File

@ -1033,7 +1033,7 @@ examples (config.SITENAME.jsonc) that are part of this pan.do/ra distribution.
"id": "pandora",
"name": "pan.do/ra",
"sendReferrer": true,
"url": "pandora.local"
"url": "pandora.spotter.vm"
},
/*
"sitePages" defines the sections of the main site dialog. If "news" is

View File

@ -0,0 +1,6 @@
#!/bin/sh
HOST="${1}"
[ "${2}" != "443" ] && HOST="${1}:${2}"
sed -i "s|^ \"url\":.*| \"url\": \"pandora.${HOST}\"|" /srv/pandora/conf/config.jsonc