Merge pull request #7 from matter-labs/pgtune-docs-fix

chore(docs): Fix duplicated pgtune block in README
This commit is contained in:
Igor Borodin
2024-03-07 09:51:48 +01:00
committed by GitHub

View File

@ -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,15 +66,17 @@ 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```
## Step-by-step guide ## Step-by-step guide