8000 updated documentation · is00hcw/elasticsearch-http-basic@23332a3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 23332a3

Browse files
author
Ernesto
committed
updated documentation
add configuration table with default values add references to were to find elasticsearch.yml configuration file add example of an actual configuration
1 parent 007421b commit 23332a3

File tree

1 file changed

+19
-6
lines changed

1 file changed

+19
-6
lines changed

README.md

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,29 @@ Download the current version from https://github.com/Asquera/elasticsearch-http-
2020

2121
## Configuration
2222

23-
The plugin is enabled by default. Enabling basic authorization will disable the default HTTP Transport module.
23+
Once the plugin is installed it can be configured in the [elasticsearch modules configuration file](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/setup-configuration.html#settings). See the [elasticserach directory layout information](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/setup-dir-layout.html) for more information about the default paths of an ES installation.
2424

25-
```
26-
http.basic.enabled: true
27-
http.basic.user: "my_username"
28-
http.basic.password: "my_password"
29-
```
25+
| Setting key | Default value | Notes |
26+
|-----------------------------|------------------------------|-------------------------------------------------------------------------|
27+
| `http.basic.enabled` | true | **true** disables the default ES HTTP Transport module |
28+
| `http.basic.user` | "admin" | |
29+
| `http.basic.pasword` | "admin_pw" | |
30+
| `http.basic.whitelist` | ["localhost", "127.0.0.1"] | |
31+
| `http.basic.log` | false | enables pugin logging to ES log |
32+
| `http.basic.xforward` | "" | example [X-Forwarded-For](http://en.wikipedia.org/wiki/X-Forwarded-For) |
3033

3134
Be aware that the password is stored in plain text.
3235

36+
### configuration example
37+
38+
The following code enables plugin logging, and sets user and password:
39+
40+
```
41+
http.basic.log: true
42+
http.basic.user: "some_user"
43+
http.basic.password: "some_password"
44+
```
45+
3346
## Testing
3447

3548
```

0 commit comments

Comments
 (0)
0