Add the ability to set the $secret_string - secure_link parameter via ENV
This commit is contained in:
parent
b2e720e66c
commit
e8e8fc2a3d
|
@ -459,6 +459,11 @@ update_nginx_settings(){
|
||||||
if [ -f "${NGINX_ONLYOFFICE_EXAMPLE_CONF}" ]; then
|
if [ -f "${NGINX_ONLYOFFICE_EXAMPLE_CONF}" ]; then
|
||||||
sed 's/linux/docker/' -i ${NGINX_ONLYOFFICE_EXAMPLE_CONF}
|
sed 's/linux/docker/' -i ${NGINX_ONLYOFFICE_EXAMPLE_CONF}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -f "${NGINX_ONLYOFFICE_DOCSERVICE_CONF}" ]; then
|
||||||
|
sed "s/verysecretstring/${SECRET_STRING_MD5:-$(cat /dev/urandom | tr -dc A-Za-z0-9 | head -c 12)}/" -i ${NGINX_ONLYOFFICE_PATH}/includes/ds-docservice.conf
|
||||||
|
sed "s/verysecretstring/${SECRET_STRING_MD5:-$(cat /dev/urandom | tr -dc A-Za-z0-9 | head -c 12)}/" -i ${CONF_DIR}/default.json
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
update_supervisor_settings(){
|
update_supervisor_settings(){
|
||||||
|
|
Loading…
Reference in a new issue