From b7d0a8607fe53e47018fbf0b5cde5e720d3815da Mon Sep 17 00:00:00 2001 From: John Date: Thu, 1 Aug 2024 17:14:58 +0800 Subject: [PATCH 1/4] Update config-guide.md --- content/cn/docs/config/config-guide.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/content/cn/docs/config/config-guide.md b/content/cn/docs/config/config-guide.md index 9febc796d..1b68af202 100644 --- a/content/cn/docs/config/config-guide.md +++ b/content/cn/docs/config/config-guide.md @@ -154,6 +154,8 @@ rest-server.properties 文件的默认内容如下: ```properties # bind url +# http://0.0.0.0:8080 to listen all network interfaces, but need to take care of security +# or listen to specific IP with port restserver.url=http://127.0.0.1:8080 # gremlin server url, need to be consistent with host and port in gremlin-server.yaml #gremlinserver.url=http://127.0.0.1:8182 @@ -170,7 +172,7 @@ server.id=server-1 server.role=master ``` -- restserver.url:RestServer 提供服务的 url,根据实际环境修改; +- restserver.url:RestServer 提供服务的 url,根据实际环境修改。如果其他 IP 地址无法访问,可以尝试修改为特定的地址;或修改为 `http://0.0.0.0:8080` 来监听来自任何 IP 地址的请求,这种方案较为便捷,但安全性有所缺失; - graphs:RestServer 启动时也需要打开图,该项为 map 结构,key 是图的名字,value 是该图的配置文件路径; > 注意:gremlin-server.yaml 和 rest-server.properties 都包含 graphs 配置项,而 `init-store` 命令是根据 gremlin-server.yaml 的 graphs 下的图进行初始化的。 @@ -375,4 +377,4 @@ curl http://127.0.0.1:8080/graphs/hugegraph_mysql_backend curl http://127.0.0.1:8080/graphs/hugegraph_rocksdb_backend {"name":"hugegraph_rocksdb","backend":"rocksdb"} -``` \ No newline at end of file +``` From 17f0dee8718e750ec6350d6457b3a778c76aab6d Mon Sep 17 00:00:00 2001 From: John Date: Thu, 1 Aug 2024 17:20:13 +0800 Subject: [PATCH 2/4] Update config-guide.md --- content/en/docs/config/config-guide.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/content/en/docs/config/config-guide.md b/content/en/docs/config/config-guide.md index f335bf996..4d6187d81 100644 --- a/content/en/docs/config/config-guide.md +++ b/content/en/docs/config/config-guide.md @@ -152,6 +152,8 @@ The default content of the `rest-server.properties` file is as follows: ```properties # bind url +# http://0.0.0.0:8080 to listen all network interfaces, but need to take care of security +# or listen to specific IP with port restserver.url=http://127.0.0.1:8080 # gremlin server url, need to be consistent with host and port in gremlin-server.yaml #gremlinserver.url=http://127.0.0.1:8182 @@ -168,7 +170,7 @@ server.id=server-1 server.role=master ``` -- `restserver.url`: The URL at which the RestServer provides its services. Modify it according to the actual environment. +- `restserver.url`: The URL at which the RestServer provides its services. Modify it according to the actual environment. If you can't connet to server from other IP address, try to modify it as specific IP; or modify it as `http://0.0.0.0:8080` to listen all network interfaces, which is convenient but lack of security. - `graphs`: The RestServer also needs to open graphs when it starts. This option is a map structure where the key is the name of the graph and the value is the configuration file path for that graph. > Note: Both `gremlin-server.yaml` and `rest-server.properties` contain the `graphs` configuration option, and the `init-store` command initializes based on the graphs specified in the `graphs` section of `gremlin-server.yaml`. @@ -373,4 +375,4 @@ curl http://127.0.0.1:8080/graphs/hugegraph_mysql_backend curl http://127.0.0.1:8080/graphs/hugegraph_rocksdb_backend {"name":"hugegraph_rocksdb","backend":"rocksdb"} -``` \ No newline at end of file +``` From 90639810a9fa8ddf56d3953e5c812c9168ad15c3 Mon Sep 17 00:00:00 2001 From: John Date: Fri, 2 Aug 2024 15:08:49 +0800 Subject: [PATCH 3/4] Update config-guide.md --- content/cn/docs/config/config-guide.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/content/cn/docs/config/config-guide.md b/content/cn/docs/config/config-guide.md index 1b68af202..bd64bdf77 100644 --- a/content/cn/docs/config/config-guide.md +++ b/content/cn/docs/config/config-guide.md @@ -154,8 +154,7 @@ rest-server.properties 文件的默认内容如下: ```properties # bind url -# http://0.0.0.0:8080 to listen all network interfaces, but need to take care of security -# or listen to specific IP with port +# could use '0.0.0.0' or specified (real)IP to expose external network access restserver.url=http://127.0.0.1:8080 # gremlin server url, need to be consistent with host and port in gremlin-server.yaml #gremlinserver.url=http://127.0.0.1:8182 @@ -172,7 +171,7 @@ server.id=server-1 server.role=master ``` -- restserver.url:RestServer 提供服务的 url,根据实际环境修改。如果其他 IP 地址无法访问,可以尝试修改为特定的地址;或修改为 `http://0.0.0.0:8080` 来监听来自任何 IP 地址的请求,这种方案较为便捷,但安全性有所缺失; +- restserver.url:RestServer 提供服务的 url,根据实际环境修改。如果其他 IP 地址无法访问,可以尝试修改为特定的地址;或修改为 `http://0.0.0.0` 来监听来自任何 IP 地址的请求,这种方案较为便捷,但需要留意服务可被访问的网络范围; - graphs:RestServer 启动时也需要打开图,该项为 map 结构,key 是图的名字,value 是该图的配置文件路径; > 注意:gremlin-server.yaml 和 rest-server.properties 都包含 graphs 配置项,而 `init-store` 命令是根据 gremlin-server.yaml 的 graphs 下的图进行初始化的。 From 817e36a0420a8c50d3e61c558817a2c896efda7d Mon Sep 17 00:00:00 2001 From: John Date: Fri, 2 Aug 2024 15:12:27 +0800 Subject: [PATCH 4/4] Update config-guide.md --- content/en/docs/config/config-guide.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/content/en/docs/config/config-guide.md b/content/en/docs/config/config-guide.md index 4d6187d81..f17662ab8 100644 --- a/content/en/docs/config/config-guide.md +++ b/content/en/docs/config/config-guide.md @@ -152,8 +152,7 @@ The default content of the `rest-server.properties` file is as follows: ```properties # bind url -# http://0.0.0.0:8080 to listen all network interfaces, but need to take care of security -# or listen to specific IP with port +# could use '0.0.0.0' or specified (real)IP to expose external network access restserver.url=http://127.0.0.1:8080 # gremlin server url, need to be consistent with host and port in gremlin-server.yaml #gremlinserver.url=http://127.0.0.1:8182 @@ -170,7 +169,7 @@ server.id=server-1 server.role=master ``` -- `restserver.url`: The URL at which the RestServer provides its services. Modify it according to the actual environment. If you can't connet to server from other IP address, try to modify it as specific IP; or modify it as `http://0.0.0.0:8080` to listen all network interfaces, which is convenient but lack of security. +- `restserver.url`: The URL at which the RestServer provides its services. Modify it according to the actual environment. If you can't connet to server from other IP address, try to modify it as specific IP; or modify it as `http://0.0.0.0` to listen all network interfaces as a convenient solution, but need to take care of the network area that might access. - `graphs`: The RestServer also needs to open graphs when it starts. This option is a map structure where the key is the name of the graph and the value is the configuration file path for that graph. > Note: Both `gremlin-server.yaml` and `rest-server.properties` contain the `graphs` configuration option, and the `init-store` command initializes based on the graphs specified in the `graphs` section of `gremlin-server.yaml`.