mirror of
https://github.com/idanoo/autobrr
synced 2025-07-22 16:29:12 +00:00
feat(database): connect postgres via socket and read config from env _FILE secrets (#2061)
* feat(database): connect postgres via socket * feat(config): read env var secrets from file * docs: explain env var secrets * refactor: generate postgres dsn
This commit is contained in:
parent
24648e45f7
commit
fe4f385a22
9 changed files with 345 additions and 76 deletions
30
config.toml
30
config.toml
|
@ -69,6 +69,36 @@ checkForUpdates = true
|
|||
#
|
||||
sessionSecret = "secret-session-key"
|
||||
|
||||
# Database configuration
|
||||
#
|
||||
#databaseType = "postgres"
|
||||
#databaseDSN = "postgresql://autobrr:postgres@localhost:5432/autobrr?sslmode=disable"
|
||||
#
|
||||
#databaseType = "sqlite"
|
||||
#databaseDSN = "file:/config/data/autobrr.db"
|
||||
#
|
||||
# Use databaseDSN or the individual fields
|
||||
#
|
||||
#postgresHost = "localhost"
|
||||
#
|
||||
#postgresPort = 5432
|
||||
#
|
||||
#postgresUser = "autobrr"
|
||||
#
|
||||
#postgresPass = "postgres"
|
||||
#
|
||||
#postgresDatabase = "autobrr"
|
||||
#
|
||||
#postgresSSLMode = "disable"
|
||||
#
|
||||
# Optional
|
||||
#
|
||||
#postgresSocket = "/run/socket.sock"
|
||||
#
|
||||
# Optional
|
||||
#
|
||||
#postgresExtraParams = "connect_timeout=10"
|
||||
|
||||
# OpenID Connect Configuration
|
||||
#
|
||||
# Enable OIDC authentication
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue