nixos/outline: allow DATABASE_URL override from environment (#532600)

This commit is contained in:
Cabia Rangris
2026-06-18 10:23:27 +00:00
committed by GitHub
+3 -5
View File
@@ -836,14 +836,12 @@ in
${
if (cfg.databaseUrl == "local") then
''
DATABASE_URL=${lib.escapeShellArg localPostgresqlUrl}
export DATABASE_URL
export PGSSLMODE=disable
export DATABASE_URL="''${DATABASE_URL:-${lib.escapeShellArg localPostgresqlUrl}}"
export PGSSLMODE="''${PGSSLMODE:-disable}"
''
else
''
DATABASE_URL=${lib.escapeShellArg cfg.databaseUrl}
export DATABASE_URL
export DATABASE_URL="''${DATABASE_URL:-${lib.escapeShellArg cfg.databaseUrl}}"
''
}