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:
ze0s 2025-05-05 21:15:24 +02:00 committed by GitHub
parent 24648e45f7
commit fe4f385a22
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 345 additions and 76 deletions

View file

@ -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