mirror of
https://github.com/C9Glax/tranga.git
synced 2025-10-11 05:09:49 +02:00
Add POSTGRES_COMMAND_TIMEOUT https://www.npgsql.org/doc/connection-string-parameters.html?q=Command%20Timeout env-var
This commit is contained in:
@@ -63,7 +63,7 @@ NpgsqlConnectionStringBuilder connectionStringBuilder = new()
|
||||
Password = Environment.GetEnvironmentVariable("POSTGRES_PASSWORD") ?? "postgres",
|
||||
ConnectionLifetime = 300,
|
||||
Timeout = 5,
|
||||
CommandTimeout = 60,
|
||||
CommandTimeout = int.Parse(Environment.GetEnvironmentVariable("POSTGRES_COMMAND_TIMEOUT") ?? "60") ,
|
||||
ApplicationName = "Tranga"
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user