Skip to content

Commit

Permalink
report database URL configuration in documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
avelino committed Jul 23, 2018
1 parent a8477c9 commit a453f13
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion content/configurations/_index.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Via environment variables or via toml file.
- PREST\_PG_PASS
- PREST\_PG_DATABASE
- PREST\_PG_PORT (default 5432)
- PREST\_PG_URL or DATABASE\_URL (cloud factor, **when declaring this variable all the previous connection fields are overwritten**)
- PREST\_JWT_KEY
- PREST\_JWT_ALGO

Expand All @@ -40,6 +41,8 @@ user = "postgres"
pass = "mypass"
port = 5432
database = "prest"
## or used cloud factor
# URL = "postgresql://user:pass@localhost/mydatabase/?sslmode=disable"

[ssl]
mode = "disable"
Expand All @@ -63,7 +66,7 @@ Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3O

- The `HS256` algorithm is used by default.

The JWT algorithm can be specified by using either the environment variable `PREST_JWT_ALGO` or the `algo` parameter in the section `[jwt]` of the `prest.toml` configuration file.
The JWT algorithm can be specified by using either the environment variable `PREST_JWT_ALGO` or the `algo` parameter in the section `[jwt]` of the `prest.toml` configuration file.

The supported signing algorithms are:

Expand Down

0 comments on commit a453f13

Please sign in to comment.