Commit
·
3b348aa
1
Parent(s):
f7ed979
explicit host binding
Browse files
docker-entrypoint-wrapper.sh
CHANGED
@@ -56,8 +56,8 @@ echo "-------------------------"
|
|
56 |
|
57 |
# Set NEXTAUTH_URL based on SPACE_ID if available
|
58 |
if [ -n "$SPACE_ID" ]; then
|
59 |
-
echo "Setting NEXTAUTH_URL to https://${
|
60 |
-
export NEXTAUTH_URL="https://${
|
61 |
else
|
62 |
echo "WARNING: SPACE_ID not found"
|
63 |
fi
|
@@ -65,5 +65,8 @@ fi
|
|
65 |
# Maybe we need to bind to 0.0.0.0 explicitly
|
66 |
export HOSTNAME="0.0.0.0"
|
67 |
|
68 |
-
# Run the original entrypoint script
|
69 |
-
./web/entrypoint.sh node ./web/server.js
|
|
|
|
|
|
|
|
56 |
|
57 |
# Set NEXTAUTH_URL based on SPACE_ID if available
|
58 |
if [ -n "$SPACE_ID" ]; then
|
59 |
+
echo "Setting NEXTAUTH_URL to https://${SPACE_HOST}"
|
60 |
+
export NEXTAUTH_URL="https://${SPACE_HOST}"
|
61 |
else
|
62 |
echo "WARNING: SPACE_ID not found"
|
63 |
fi
|
|
|
65 |
# Maybe we need to bind to 0.0.0.0 explicitly
|
66 |
export HOSTNAME="0.0.0.0"
|
67 |
|
68 |
+
# Run the original entrypoint script with explicit host binding
|
69 |
+
exec ./web/entrypoint.sh node ./web/server.js \
|
70 |
+
--keepAliveTimeout 110000 \
|
71 |
+
--hostname "0.0.0.0" \
|
72 |
+
--port 3000
|