-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
2,754 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,4 +9,4 @@ Nikita Bugrovsky <[email protected]> | |
Lawrence Wu <[email protected]> | ||
Yongting You <[email protected]> | ||
Ashutosh Sharma <[email protected]> | ||
Henrique de Carvalho <[email protected]> | ||
Henrique de Carvalho <[email protected]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# pgagroal-vault configuration | ||
|
||
The configuration which is mandatory is loaded from either the path specified by the `-c` flag or `/etc/pgagroal/pgagroal_vault.conf`. | ||
|
||
The configuration of `pgagroal-vault` is split into sections using the `[` and `]` characters. | ||
|
||
The pgagroal-vault section, called `[pgagroal-vault]`, is where you configure the overall properties of the vault's server. | ||
|
||
The other section provide configuration for the management port of pgagroal. For now there can be only one pgagroal management port to connect. | ||
This section don't have any requirements to their naming so you can give them | ||
meaningful names but generally named as `[main]`. | ||
|
||
All properties within a section are in the format `key = value`. | ||
|
||
The characters `#` and `;` can be used for comments. A line is totally ignored if the | ||
very first non-space character is a comment one, but it is possible to put a comment at the end of a line. | ||
The `Bool` data type supports the following values: `on`, `yes`, `1`, `true`, `off`, `no`, `0` and `false`. | ||
|
||
See a more complete [sample](./etc/pgagroal_vault.conf) configuration for running `pgagroal-vault` on `localhost`. | ||
|
||
## [pgagroal-vault] | ||
|
||
This section is mandatory and the pooler will refuse to start if the configuration file does not specify one and only one. Usually this section is place on top of the configuration file, but its position within the file does not really matter. | ||
The available keys and their accepted values are reported in the table below. | ||
|
||
| Property | Default | Unit | Required | Description | | ||
|----------|---------|------|----------|-------------| | ||
| host | | String | Yes | The bind address for pgagroal-vault | | ||
| port | | Int | Yes | The bind port for pgagroal-vault | | ||
| tls | `off` | Bool | No | Enable Transport Layer Security (TLS) | | ||
| tls_cert_file | | String | No | Certificate file for TLS. This file must be owned by either the user running pgagroal-vault or root. | | ||
| tls_key_file | | String | No | Private key file for TLS. This file must be owned by either the user running pgagroal-vault or root. Additionally permissions must be at least `0640` when owned by root or `0600` otherwise. | | ||
| tls_ca_file | | String | No | Certificate Authority (CA) file for TLS. This file must be owned by either the user running pgagroal-vault or root. | | ||
|
||
|
||
## [main] | ||
|
||
The section with a name different from `pgagroal-vault` will be treated as an main section. | ||
|
||
| Property | Default | Unit | Required | Description | | ||
|----------|---------|------|----------|-------------| | ||
| host | | String | Yes | The address of the pgagroal running the management server | | ||
| port | | Int | Yes | The management port of pgagroal | | ||
| user | | String | Yes | The admin user of the pgagroal remote management service | | ||
| tls | `off` | Bool | No | Enable Transport Layer Security (TLS) support (Experimental - no pooling) | | ||
| tls_cert_file | | String | No | Certificate file for TLS. This file must be owned by either the user running pgagroal or root. | | ||
| tls_key_file | | String | No | Private key file for TLS. This file must be owned by either the user running pgagroal or root. Additionally permissions must be at least `0640` when owned by root or `0600` otherwise. | | ||
| tls_ca_file | | String | No | Certificate Authority (CA) file for TLS. This file must be owned by either the user running pgagroal or root. | | ||
|
||
Note: For `pgagroal-vault` to function and connect properly to pgagroal, the remote server for management of the `pgagroal` should be enabled i.e. `management` should be greater than 0. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.