mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 00:39:13 +00:00
feat(database): postgres set ssl mode (#1245)
* feat(database): postgres set ssl mode * feat(database): postgres set extra params
This commit is contained in:
parent
8c89481d88
commit
73e76c4214
3 changed files with 43 additions and 36 deletions
|
@ -182,23 +182,25 @@ func New(configPath string, version string) *AppConfig {
|
|||
|
||||
func (c *AppConfig) defaults() {
|
||||
c.Config = &domain.Config{
|
||||
Version: "dev",
|
||||
Host: "localhost",
|
||||
Port: 7474,
|
||||
LogLevel: "TRACE",
|
||||
LogPath: "",
|
||||
LogMaxSize: 50,
|
||||
LogMaxBackups: 3,
|
||||
BaseURL: "/",
|
||||
SessionSecret: api.GenerateSecureToken(16),
|
||||
CustomDefinitions: "",
|
||||
CheckForUpdates: true,
|
||||
DatabaseType: "sqlite",
|
||||
PostgresHost: "",
|
||||
PostgresPort: 0,
|
||||
PostgresDatabase: "",
|
||||
PostgresUser: "",
|
||||
PostgresPass: "",
|
||||
Version: "dev",
|
||||
Host: "localhost",
|
||||
Port: 7474,
|
||||
LogLevel: "TRACE",
|
||||
LogPath: "",
|
||||
LogMaxSize: 50,
|
||||
LogMaxBackups: 3,
|
||||
BaseURL: "/",
|
||||
SessionSecret: api.GenerateSecureToken(16),
|
||||
CustomDefinitions: "",
|
||||
CheckForUpdates: true,
|
||||
DatabaseType: "sqlite",
|
||||
PostgresHost: "",
|
||||
PostgresPort: 0,
|
||||
PostgresDatabase: "",
|
||||
PostgresUser: "",
|
||||
PostgresPass: "",
|
||||
PostgresSSLMode: "disable",
|
||||
PostgresExtraParams: "",
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue