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
|
```yaml
|
||||||
# Enable basic auth for external node
|
# Enable basic auth for external node
|
||||||
enable_basic_auth: false
|
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:
|
Basic auth secret can be generated by next command:
|
||||||
|
|
||||||
|
|||||||
@ -64,7 +64,6 @@ domain_name: ""
|
|||||||
|
|
||||||
# Enable basic auth for external node
|
# Enable basic auth for external node
|
||||||
enable_basic_auth: false
|
enable_basic_auth: false
|
||||||
basic_auth_username: ""
|
|
||||||
basic_auth_secret: ""
|
basic_auth_secret: ""
|
||||||
|
|
||||||
# Force restore pg database
|
# Force restore pg database
|
||||||
|
|||||||
@ -71,7 +71,7 @@ services:
|
|||||||
- "traefik.http.routers.external_node_health.service=external_node_health"
|
- "traefik.http.routers.external_node_health.service=external_node_health"
|
||||||
{% if enable_basic_auth %}
|
{% if enable_basic_auth %}
|
||||||
- "traefik.http.routers.external_node_main.middlewares=external_node_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 %}
|
{% endif %}
|
||||||
expose:
|
expose:
|
||||||
- {{ rpc_http_port }}
|
- {{ rpc_http_port }}
|
||||||
|
|||||||
Reference in New Issue
Block a user