andrewrreed HF staff commited on
Commit
5d58014
·
1 Parent(s): e9bdc69

test hostname

Browse files
Files changed (1) hide show
  1. docker-entrypoint-wrapper.sh +11 -9
docker-entrypoint-wrapper.sh CHANGED
@@ -43,14 +43,6 @@ until pg_isready -h localhost; do
43
  sleep 1
44
  done
45
 
46
- # Debug network information
47
- echo "Network Debug Information:"
48
- echo "-------------------------"
49
- ip addr show
50
- echo "-------------------------"
51
- netstat -tulpn
52
- echo "-------------------------"
53
-
54
  # Set NEXTAUTH_URL based on SPACE_HOST if available
55
  if [ -n "$SPACE_ID" ]; then
56
  echo "Setting NEXTAUTH_URL to https://huggingface.co/spaces/${SPACE_ID}"
@@ -66,4 +58,14 @@ export DATABASE_URL="postgresql://postgres:postgres@localhost:5432/node"
66
  exec ./web/entrypoint.sh node ./web/server.js \
67
  --keepAliveTimeout 110000 \
68
  --hostname "0.0.0.0" \
69
- --port 3000
 
 
 
 
 
 
 
 
 
 
 
43
  sleep 1
44
  done
45
 
 
 
 
 
 
 
 
 
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}"
 
58
  exec ./web/entrypoint.sh node ./web/server.js \
59
  --keepAliveTimeout 110000 \
60
  --hostname "0.0.0.0" \
61
+ --port 3000 \
62
+ --experimental-hostname-validation=false \
63
+ --experimental-allow-all-hostnames=true
64
+
65
+ # Debug network information
66
+ echo "Network Debug Information:"
67
+ echo "-------------------------"
68
+ ip addr show
69
+ echo "-------------------------"
70
+ netstat -tulpn
71
+ echo "-------------------------"