mirror of
https://github.com/matter-labs/ansible-en-role.git
synced 2025-12-06 02:49:55 +00:00
update doc
This commit is contained in:
@ -72,8 +72,7 @@ If you want to set basic auth for inbound requests, You can do it by configure n
|
||||
```yaml
|
||||
# Enable basic auth for external node
|
||||
enable_basic_auth: false
|
||||
basic_auth_username: "" # basic auth username
|
||||
basic_auth_secret: "" # basic auth secret
|
||||
basic_auth_secret: ""
|
||||
```
|
||||
Basic auth secret can be generated by next command:
|
||||
|
||||
|
||||
@ -64,7 +64,6 @@ domain_name: ""
|
||||
|
||||
# Enable basic auth for external node
|
||||
enable_basic_auth: false
|
||||
basic_auth_username: ""
|
||||
basic_auth_secret: ""
|
||||
|
||||
# Force restore pg database
|
||||
|
||||
@ -71,7 +71,7 @@ services:
|
||||
- "traefik.http.routers.external_node_health.service=external_node_health"
|
||||
{% if enable_basic_auth %}
|
||||
- "traefik.http.routers.external_node_main.middlewares=external_node_auth"
|
||||
- "traefik.http.middlewares.external_node_auth.basicauth.users={{ basic_auth_username }}:{{ basic_auth_secret }}"
|
||||
- "traefik.http.middlewares.external_node_auth.basicauth.users={{ basic_auth_secret }}"
|
||||
{% endif %}
|
||||
expose:
|
||||
- {{ rpc_http_port }}
|
||||
|
||||
Reference in New Issue
Block a user