Skip to content

Commit

Permalink
docker: allow setting frontend http mode (http / https)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bnyro committed Jan 7, 2025
1 parent 07ac162 commit 0b5232f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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;"

0 comments on commit 0b5232f

Please sign in to comment.