mirror of
https://github.com/matter-labs/ansible-en-role.git
synced 2025-12-06 10:59:56 +00:00
chore(docs): Fix duplicated pgtune block in README
This commit is contained in:
@ -54,7 +54,7 @@ iptables_packages:
|
|||||||
loadbalancer_ip: "1.2.3.4"
|
loadbalancer_ip: "1.2.3.4"
|
||||||
```
|
```
|
||||||
|
|
||||||
In most cases, you'd want to change PostgreSQL parameters (we recommend to use <https://pgtune.leopard.in.ua/> with "Online transaction processing system" preset as sane defaults), so you can do it using `postgres_arguments` variable, eg:
|
In most cases, you'd want to change PostgreSQL parameters, so you can do it using `postgres_arguments` variable, eg:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
postgres_arguments:
|
postgres_arguments:
|
||||||
@ -66,14 +66,16 @@ postgres_arguments:
|
|||||||
- -c
|
- -c
|
||||||
```
|
```
|
||||||
|
|
||||||
We recommend using pgtune [online]<https://pgtune.leopard.in.ua/> or [self-hosted](https://github.com/le0pard/pgtune) version with "Online transaction processing system" preset as a good starting point for generating optimal config for your hardware.
|
We recommend using pgtune [online](https://pgtune.leopard.in.ua/) or [self-hosted](https://github.com/le0pard/pgtune) version with "Online transaction processing system" preset as a good starting point for generating optimal config for your hardware.
|
||||||
|
|
||||||
If you want to use basic auth for inbound requests, you have to change next variables:
|
If you want to use basic auth for inbound requests, you have to change next variables:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
# Enable basic auth for external node
|
# Enable basic auth for external node
|
||||||
enable_basic_auth: true
|
enable_basic_auth: true
|
||||||
basic_auth_secret: "htpasswd-generated-secret"
|
basic_auth_secret: "htpasswd-generated-secret"
|
||||||
```
|
```
|
||||||
|
|
||||||
Basic auth secret can be generated by `htpasswd` and `sed` for interpolation:
|
Basic auth secret can be generated by `htpasswd` and `sed` for interpolation:
|
||||||
```echo $(htpasswd -nb <username> <password>) | sed -e s/\\$/\\$\\$/g```
|
```echo $(htpasswd -nb <username> <password>) | sed -e s/\\$/\\$\\$/g```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user