diff --git a/docker/rootfs/etc/s6-overlay/s6-rc.d/svc-webserver/run b/docker/rootfs/etc/s6-overlay/s6-rc.d/svc-webserver/run index 51d14d27e..9c5aab1e1 100755 --- a/docker/rootfs/etc/s6-overlay/s6-rc.d/svc-webserver/run +++ b/docker/rootfs/etc/s6-overlay/s6-rc.d/svc-webserver/run @@ -7,6 +7,7 @@ cd ${PAPERLESS_SRC_DIR} export GRANIAN_HOST=${GRANIAN_HOST:-${PAPERLESS_BIND_ADDR:-"::"}} export GRANIAN_PORT=${GRANIAN_PORT:-${PAPERLESS_PORT:-8000}} export GRANIAN_WORKERS=${GRANIAN_WORKERS:-${PAPERLESS_WEBSERVER_WORKERS:-1}} +export GRANIAN_LOG_LEVEL=debug # Only set GRANIAN_URL_PATH_PREFIX if PAPERLESS_FORCE_SCRIPT_NAME is set if [[ -n "${PAPERLESS_FORCE_SCRIPT_NAME}" ]]; then @@ -14,7 +15,7 @@ if [[ -n "${PAPERLESS_FORCE_SCRIPT_NAME}" ]]; then fi if [[ -n "${USER_IS_NON_ROOT}" ]]; then - exec granian --interface asginl --ws "paperless.asgi:application" + exec granian --interface asginl --loop uvloop --ws "paperless.asgi:application" else - exec s6-setuidgid paperless granian --interface asginl --ws "paperless.asgi:application" + exec s6-setuidgid paperless granian --interface asginl --loop uvloop --ws "paperless.asgi:application" fi