fix: gateway config for agent mTLS

This commit is contained in:
hardy 2025-02-25 16:22:24 +08:00
parent 785f2ede57
commit 9a9896c2f2
No known key found for this signature in database
GPG Key ID: 6A2F0E0049AB3F59
1 changed files with 7 additions and 7 deletions

View File

@ -10,13 +10,13 @@ entry:
router: my_router router: my_router
max_concurrency: 200000 max_concurrency: 200000
network: network:
binding: 0.0.0.0:8081 binding: 0.0.0.0:8765
# tls: #for mTLS connection with config servers tls: #for mTLS connection with config servers
# enabled: true enabled: true
# ca_file: /xxx/ca.crt # ca_file: /xxx/ca.crt
# cert_file: /xxx/server.crt # cert_file: /xxx/server.crt
# key_file: /xxx/server.key # key_file: /xxx/server.key
# skip_insecure_verify: false skip_insecure_verify: false
flow: flow:
- name: deny_flow - name: deny_flow
@ -28,7 +28,7 @@ flow:
filter: filter:
- basic_auth: - basic_auth:
valid_users: valid_users:
ingest: n $[[SETUP_AGENT_USERNAME]]: $[[SETUP_AGENT_PASSWORD]]
- rewrite_to_bulk: - rewrite_to_bulk:
type_removed: false type_removed: false
- bulk_request_mutate: - bulk_request_mutate:
@ -65,8 +65,8 @@ elasticsearch:
- name: prod - name: prod
enabled: true enabled: true
basic_auth: basic_auth:
username: ingest username: $[[SETUP_AGENT_USERNAME]]
password: password password: $[[SETUP_AGENT_PASSWORD]]
endpoints: $[[SETUP_ENDPOINTS]] endpoints: $[[SETUP_ENDPOINTS]]
pipeline: pipeline: