Switch default to localhost. Fixes #107
This commit is contained in:
parent
2eb25968c2
commit
b4ef86145d
3 changed files with 3 additions and 3 deletions
|
|
@ -126,7 +126,7 @@ var (
|
||||||
databasePath = flag.String("dbpath", "/tmp/testdb", "Path to the database.")
|
databasePath = flag.String("dbpath", "/tmp/testdb", "Path to the database.")
|
||||||
databaseBackend = flag.String("db", "memstore", "Database Backend.")
|
databaseBackend = flag.String("db", "memstore", "Database Backend.")
|
||||||
replicationBackend = flag.String("replication", "single", "Replication method.")
|
replicationBackend = flag.String("replication", "single", "Replication method.")
|
||||||
host = flag.String("host", "0.0.0.0", "Host to listen on (defaults to all).")
|
host = flag.String("host", "127.0.0.1", "Host to listen on (defaults to all).")
|
||||||
loadSize = flag.Int("load_size", 10000, "Size of triplesets to load")
|
loadSize = flag.Int("load_size", 10000, "Size of triplesets to load")
|
||||||
port = flag.String("port", "64210", "Port to listen on.")
|
port = flag.String("port", "64210", "Port to listen on.")
|
||||||
readOnly = flag.Bool("read_only", false, "Disable writing via HTTP.")
|
readOnly = flag.Bool("read_only", false, "Disable writing via HTTP.")
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@ All command line flags take precedence over the configuration file.
|
||||||
#### **`listen_host`**
|
#### **`listen_host`**
|
||||||
|
|
||||||
* Type: String
|
* Type: String
|
||||||
* Default: "0.0.0.0"
|
* Default: "127.0.0.1"
|
||||||
|
|
||||||
The hostname or IP address for Cayley's HTTP server to listen on. Defaults to all interfaces.
|
The hostname or IP address for Cayley's HTTP server to listen on. Defaults to all interfaces.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -62,7 +62,7 @@ Just as before:
|
||||||
And you'll see a message not unlike
|
And you'll see a message not unlike
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
Cayley now listening on 0.0.0.0:64210
|
Cayley now listening on 127.0.0.1:64210
|
||||||
```
|
```
|
||||||
|
|
||||||
If you visit that address (often, [http://localhost:64210](http://localhost:64210)) you'll see the full web interface and also have a graph ready to serve queries via the [HTTP API](/docs/HTTP.md)
|
If you visit that address (often, [http://localhost:64210](http://localhost:64210)) you'll see the full web interface and also have a graph ready to serve queries via the [HTTP API](/docs/HTTP.md)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue