mirror of
https://github.com/TeamPiped/Piped.git
synced 2025-01-10 03:20:29 +05:30
docker: allow setting frontend http mode (http / https)
This commit is contained in:
parent
07ac162ff1
commit
0b5232fd72
@ -5,5 +5,8 @@ if [ -z "$BACKEND_HOSTNAME" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
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/*
|
sed -i s/pipedapi.kavin.rocks/"$BACKEND_HOSTNAME"/g /usr/share/nginx/html/assets/*
|
||||||
nginx -g "daemon off;"
|
nginx -g "daemon off;"
|
||||||
|
Loading…
Reference in New Issue
Block a user