From 0b5232fd7263f4a48ea856399dea4481d5860b93 Mon Sep 17 00:00:00 2001 From: Bnyro Date: Tue, 7 Jan 2025 20:56:44 +0100 Subject: [PATCH] docker: allow setting frontend http mode (http / https) --- docker/entrypoint.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index ffb9c7ed..d4f3fc73 100755 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -5,5 +5,8 @@ if [ -z "$BACKEND_HOSTNAME" ]; then exit 1 fi +HTTP_MODE=${HTTP_MODE:-https} + +sed -i s@https://pipedapi.kavin.rocks@"$HTTP_MODE"://pipedapi.kavin.rocks@g /usr/share/nginx/html/assets/* sed -i s/pipedapi.kavin.rocks/"$BACKEND_HOSTNAME"/g /usr/share/nginx/html/assets/* nginx -g "daemon off;"