mirror of
https://github.com/matter-labs/ansible-en-role.git
synced 2025-12-06 02:49:55 +00:00
Merge pull request #7 from matter-labs/pgtune-docs-fix
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"
|
||||
```
|
||||
|
||||
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
|
||||
postgres_arguments:
|
||||
@ -66,15 +66,17 @@ postgres_arguments:
|
||||
- -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:
|
||||
|
||||
```yaml
|
||||
# Enable basic auth for external node
|
||||
enable_basic_auth: true
|
||||
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```
|
||||
|
||||
## Step-by-step guide
|
||||
|
||||
Reference in New Issue
Block a user