Show proper external URL in Pandora, fixes #264
This commit is contained in:
parent
a8c6339bfc
commit
5a32b94da1
@ -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
|
||||
|
@ -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
|
||||
|
6
pandora/srv/pandora/update-url.sh
Executable file
6
pandora/srv/pandora/update-url.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user