From 11e094c0cfa0919dba1b053d9b5309c8098853fd Mon Sep 17 00:00:00 2001 From: Matias Laporte Date: Fri, 16 Oct 2020 22:11:00 +0200 Subject: [PATCH] Add environment variable to allow easy HTTPS debug in docker (#1098) * Add environment variable to allow easy HTTPS debug in docker --- contrib/docker/entrypoint.sh | 6 ++++++ docs/Docker.md | 1 + 2 files changed, 7 insertions(+) diff --git a/contrib/docker/entrypoint.sh b/contrib/docker/entrypoint.sh index 72eb8d94..430402db 100755 --- a/contrib/docker/entrypoint.sh +++ b/contrib/docker/entrypoint.sh @@ -40,6 +40,12 @@ if [ "${ONEDRIVE_DEBUG:=0}" == "1" ]; then ARGS=(--verbose --verbose ${ARGS[@]}) fi +# Tell client to perform HTTPS debug output, based on an environment variable +if [ "${ONEDRIVE_DEBUG_HTTPS:=0}" == "1" ]; then + echo "# We are performing HTTPS debug output" + ARGS=(--debug-https ${ARGS[@]}) +fi + # Tell client to perform a resync based on environment variable if [ "${ONEDRIVE_RESYNC:=0}" == "1" ]; then echo "# We are performing a --resync" diff --git a/docs/Docker.md b/docs/Docker.md index 27639d75..68861e18 100644 --- a/docs/Docker.md +++ b/docs/Docker.md @@ -152,6 +152,7 @@ docker run $firstRun --restart unless-stopped --name onedrive -v onedrive_conf:/ | ONEDRIVE_GID | GroupID (GID) to run as | 1000 | | ONEDRIVE_VERBOSE | Controls "--verbose" switch on onedrive sync. Default is 0 | 1 | | ONEDRIVE_DEBUG | Controls "--verbose --verbose" switch on onedrive sync. Default is 0 | 1 | +| ONEDRIVE_DEBUG_HTTPS | Controls "--debug-https" switch on onedrive sync. Default is 0 | 1 | | ONEDRIVE_RESYNC | Controls "--resync" switch on onedrive sync. Default is 0 | 1 | ### Usage Examples