Skip to content

Commit c277c8c

Browse files
committed
update params
1 parent b773f2d commit c277c8c

File tree

1 file changed

+7
-7
lines changed
  • crowdsec-docs/docs/data_sources

1 file changed

+7
-7
lines changed

crowdsec-docs/docs/data_sources/http.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This module allows the `Security Engine` to acquire logs from an HTTP endpoint.
1010
To receive logs from an HTTP endpoint with basic auth:
1111
```yaml
1212
source: http
13-
port: 8080
13+
listen_addr: 127.0.0.1:8080
1414
path: /test
1515
auth_type: basic_auth
1616
basic_auth:
@@ -23,7 +23,7 @@ labels:
2323
To receive logs from an HTTP endpoint with headers:
2424
```yaml
2525
source: http
26-
port: 8080
26+
listen_addr: 127.0.0.1:8080
2727
path: /test
2828
auth_type: headers
2929
headers:
@@ -36,7 +36,7 @@ To receive logs from an HTTP endpoint with TLS and headers:
3636
3737
```yaml
3838
source: http
39-
port: 8080
39+
listen_addr: 127.0.0.1:8080
4040
path: /test
4141
auth_type: headers
4242
headers:
@@ -52,7 +52,7 @@ To receive logs from an HTTP endpoint with mTLS:
5252
5353
```yaml
5454
source: http
55-
port: 8080
55+
listen_addr: 127.0.0.1:8080
5656
path: /test
5757
auth_type: mtls
5858
tls:
@@ -68,9 +68,9 @@ Look at the `configuration parameters` to view all supported options.
6868
## Parameters
6969

7070

71-
### `port`
71+
### `listen_addr`
7272

73-
The port to listen on.
73+
The address to listen on (e.g., `1270.0.1:8088`).
7474

7575
Required.
7676

@@ -82,7 +82,7 @@ The endpoint path to listen on.
8282
The request method is always `POST`.
8383
:::
8484

85-
Required.
85+
Optional, default is `/`.
8686

8787
### `auth_type`
8888

0 commit comments

Comments
 (0)