andandandand commited on
Commit
6cf1bbc
·
verified ·
1 Parent(s): e26e421

Document bind host and port precedence

Browse files
Files changed (1) hide show
  1. README.md +8 -2
README.md CHANGED
@@ -27,8 +27,14 @@ Runtime environment variables:
27
  - `HF_DATASET_SPLIT` (default: `train`)
28
  - `EMBEDDING_ASSET_DIR` (default: `./assets`)
29
  - `EMBEDDING_ASSET_MANIFEST` (default: `${EMBEDDING_ASSET_DIR}/manifest.json`)
30
- - `SPACE_HOST` (default: `0.0.0.0`)
31
- - `SPACE_PORT` (default: `7860`)
 
 
 
 
 
 
32
 
33
  ## Important Note
34
 
 
27
  - `HF_DATASET_SPLIT` (default: `train`)
28
  - `EMBEDDING_ASSET_DIR` (default: `./assets`)
29
  - `EMBEDDING_ASSET_MANIFEST` (default: `${EMBEDDING_ASSET_DIR}/manifest.json`)
30
+ - `HYPERVIEW_BIND_HOST` (preferred bind host; optional)
31
+ - `SPACE_HOST` (compat input only; used for bind only if local: `0.0.0.0`, `127.0.0.1`, `localhost`, `::`, `::1`)
32
+ - `SPACE_PORT` (primary port source)
33
+ - `PORT` (fallback port source when `SPACE_PORT` is unset)
34
+
35
+ Port precedence: `SPACE_PORT` > `PORT` > `7860`.
36
+
37
+ On Hugging Face Spaces, `SPACE_HOST` may be injected as `<space-subdomain>.hf.space`. That domain must not be used as a local bind socket, so the runtime falls back to `0.0.0.0` unless `HYPERVIEW_BIND_HOST` is explicitly set.
38
 
39
  ## Important Note
40