mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-06 06:45:05 +01:00
Address comments
This commit is contained in:
parent
9b2b435c5b
commit
9c1fcbcc98
3 changed files with 12 additions and 3 deletions
|
|
@ -104,8 +104,12 @@ if [[ "$1" != "/"* ]]; then
|
|||
EXTRA_PARAMS=""
|
||||
SSL_KEY_PATH="/usr/src/paperless/data/ssl.key"
|
||||
SSL_CERT_PATH="/usr/src/paperless/data/ssl.cert"
|
||||
if [ "${PAPERLESS_USE_SSL}" = "true" ] && [ -f "${SSL_KEY_PATH}" ] && [ -f "${SSL_CERT_PATH}" ]; then
|
||||
EXTRA_PARAMS="--certfile=${SSL_CERT_PATH} --keyfile=${SSL_KEY_PATH}"
|
||||
if [ "${PAPERLESS_USE_SSL}" = "true" ]; then
|
||||
if [ -f "${SSL_KEY_PATH}" ] && [ -f "${SSL_CERT_PATH}" ]; then
|
||||
EXTRA_PARAMS="--certfile=${SSL_CERT_PATH} --keyfile=${SSL_KEY_PATH}"
|
||||
else
|
||||
echo "Error: Could not find certfile in ${SSL_CERT_PATH} or keyfile in ${SSL_KEY_PATH}, but \$PAPERLESS_USE_SSL is true. Starting without SSL enabled."
|
||||
fi
|
||||
fi
|
||||
cd /usr/src/paperless/src/ && \
|
||||
exec sudo -HEu paperless /usr/bin/gunicorn -c /usr/src/paperless/gunicorn.conf ${EXTRA_PARAMS} "$@" paperless.wsgi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue