mirror of
https://github.com/C9Glax/tranga.git
synced 2025-10-11 13:19:48 +02:00
Add POSTGRES_CONNECTION_TIMEOUT
This commit is contained in:
@@ -62,7 +62,7 @@ NpgsqlConnectionStringBuilder connectionStringBuilder = new()
|
|||||||
Username = Environment.GetEnvironmentVariable("POSTGRES_USER") ?? "postgres",
|
Username = Environment.GetEnvironmentVariable("POSTGRES_USER") ?? "postgres",
|
||||||
Password = Environment.GetEnvironmentVariable("POSTGRES_PASSWORD") ?? "postgres",
|
Password = Environment.GetEnvironmentVariable("POSTGRES_PASSWORD") ?? "postgres",
|
||||||
ConnectionLifetime = 300,
|
ConnectionLifetime = 300,
|
||||||
Timeout = 5,
|
Timeout = int.Parse(Environment.GetEnvironmentVariable("POSTGRES_CONNECTION_TIMEOUT") ?? "30"),
|
||||||
ReadBufferSize = 65536,
|
ReadBufferSize = 65536,
|
||||||
WriteBufferSize = 65536,
|
WriteBufferSize = 65536,
|
||||||
CommandTimeout = int.Parse(Environment.GetEnvironmentVariable("POSTGRES_COMMAND_TIMEOUT") ?? "60"),
|
CommandTimeout = int.Parse(Environment.GetEnvironmentVariable("POSTGRES_COMMAND_TIMEOUT") ?? "60"),
|
||||||
|
@@ -126,7 +126,7 @@ The file also includes [tranga-website](https://github.com/C9Glax/tranga-website
|
|||||||
[Tranga-Website Repository](https://github.com/C9Glax/tranga-website) README.
|
[Tranga-Website Repository](https://github.com/C9Glax/tranga-website) README.
|
||||||
|
|
||||||
| env-var | default-value |
|
| env-var | default-value |
|
||||||
|--------------------------|------------------------------------------------------------------------------------------|
|
|-----------------------------|------------------------------------------------------------------------------------------|
|
||||||
| POSTGRES_HOST | `tranga-pg:5432` |
|
| POSTGRES_HOST | `tranga-pg:5432` |
|
||||||
| POSTGRES_DB | `postgres` |
|
| POSTGRES_DB | `postgres` |
|
||||||
| POSTGRES_USER | `postgres` |
|
| POSTGRES_USER | `postgres` |
|
||||||
@@ -134,6 +134,7 @@ The file also includes [tranga-website](https://github.com/C9Glax/tranga-website
|
|||||||
| DOWNLOAD_LOCATION | `/Manga` |
|
| DOWNLOAD_LOCATION | `/Manga` |
|
||||||
| FLARESOLVERR_URL | <empty> |
|
| FLARESOLVERR_URL | <empty> |
|
||||||
| POSTGRES_COMMAND_TIMEOUT | [`60`](https://www.npgsql.org/doc/connection-string-parameters.html?q=Command%20Timeout) |
|
| POSTGRES_COMMAND_TIMEOUT | [`60`](https://www.npgsql.org/doc/connection-string-parameters.html?q=Command%20Timeout) |
|
||||||
|
| POSTGRES_CONNECTION_TIMEOUT | `30` |
|
||||||
|
|
||||||
For compatibility do not execute the compose as root (which you should not do anyways...) but as user that can
|
For compatibility do not execute the compose as root (which you should not do anyways...) but as user that can
|
||||||
access the folder. Permission conflicts with Komga and Kavita should thus be limited.
|
access the folder. Permission conflicts with Komga and Kavita should thus be limited.
|
||||||
|
Reference in New Issue
Block a user