Spaces:
Sleeping
Sleeping
Upload elasticsearch.yml
Browse files- elasticsearch.yml +24 -0
elasticsearch.yml
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# ---------------------------------- Cluster -----------------------------------
|
2 |
+
cluster.name: hf-space-cluster
|
3 |
+
|
4 |
+
# ------------------------------------ Node ------------------------------------
|
5 |
+
node.name: node-1
|
6 |
+
# Single‐node discovery (no other masters needed)
|
7 |
+
discovery.type: single-node
|
8 |
+
|
9 |
+
# ----------------------------------- Paths ------------------------------------
|
10 |
+
# In Spaces you can’t write to E:\ – use the Linux default data path,
|
11 |
+
# or override to something under /mnt/data if you really need persistence.
|
12 |
+
# (But remember: Space storage is still ephemeral.)
|
13 |
+
# path.data: /mnt/data/elasticsearch
|
14 |
+
|
15 |
+
# ---------------------------------- Network -----------------------------------
|
16 |
+
# Listen on all interfaces so HF’s port‐mapper can bind it
|
17 |
+
network.host: 0.0.0.0
|
18 |
+
|
19 |
+
# Remap the HTTP API to the one port Spaces exposes
|
20 |
+
http.port: 7860
|
21 |
+
|
22 |
+
# ---------------------------------- Security ----------------------------------
|
23 |
+
# Disable all built-in security (you’re running a throw-away demo anyway)
|
24 |
+
xpack.security.enabled: false
|