Commit
·
2261097
1
Parent(s):
95b25e8
debug
Browse files
docker-entrypoint-wrapper.sh
CHANGED
@@ -46,8 +46,7 @@ done
|
|
46 |
# Set NEXTAUTH_URL based on SPACE_HOST if available
|
47 |
if [ -n "$SPACE_ID" ]; then
|
48 |
echo "Setting NEXTAUTH_URL to https://huggingface.co/spaces/${SPACE_ID}"
|
49 |
-
|
50 |
-
export NEXTAUTH_URL="http://localhost:3000"
|
51 |
else
|
52 |
echo "WARNING: SPACE_ID not found"
|
53 |
fi
|
@@ -64,10 +63,7 @@ export PORT=3000
|
|
64 |
./web/entrypoint.sh node ./web/server.js \
|
65 |
--keepAliveTimeout 110000 \
|
66 |
--hostname "0.0.0.0" \
|
67 |
-
--port 3000
|
68 |
-
--experimental-hostname-validation=false \
|
69 |
-
--experimental-allow-all-hostnames=true \
|
70 |
-
--experimental-https=true &
|
71 |
|
72 |
# Wait a moment for the server to start
|
73 |
sleep 5
|
|
|
46 |
# Set NEXTAUTH_URL based on SPACE_HOST if available
|
47 |
if [ -n "$SPACE_ID" ]; then
|
48 |
echo "Setting NEXTAUTH_URL to https://huggingface.co/spaces/${SPACE_ID}"
|
49 |
+
export NEXTAUTH_URL="https://huggingface.co/spaces/${SPACE_ID}"
|
|
|
50 |
else
|
51 |
echo "WARNING: SPACE_ID not found"
|
52 |
fi
|
|
|
63 |
./web/entrypoint.sh node ./web/server.js \
|
64 |
--keepAliveTimeout 110000 \
|
65 |
--hostname "0.0.0.0" \
|
66 |
+
--port 3000
|
|
|
|
|
|
|
67 |
|
68 |
# Wait a moment for the server to start
|
69 |
sleep 5
|