andrewrreed HF staff commited on
Commit
3b348aa
·
1 Parent(s): f7ed979

explicit host binding

Browse files
Files changed (1) hide show
  1. docker-entrypoint-wrapper.sh +7 -4
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://${SPACE_ID}.hf.space"
60
- export NEXTAUTH_URL="https://${SPACE_ID}.hf.space"
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 --keepAliveTimeout 110000 --hostname 0.0.0.0
 
 
 
 
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