nixos/ferretdb: set default value for PostgreSQL URL
provides a nice default if the end user wants to use the PostgreSQL backend
This commit is contained in:
parent
ccd19c4503
commit
3b3764df09
@ -33,6 +33,12 @@ in
|
||||
default = "file:/var/lib/ferretdb/";
|
||||
description = "SQLite URI (directory) for 'sqlite' handler";
|
||||
};
|
||||
|
||||
FERRETDB_POSTGRESQL_URL = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = "postgres://ferretdb@localhost/ferretdb?host=/run/postgresql";
|
||||
description = "PostgreSQL URL for 'pg' handler";
|
||||
};
|
||||
};
|
||||
};
|
||||
example = {
|
||||
|
@ -26,7 +26,6 @@ with import ../lib/testing-python.nix { inherit system; };
|
||||
services.ferretdb = {
|
||||
enable = true;
|
||||
settings.FERRETDB_HANDLER = "pg";
|
||||
settings.FERRETDB_POSTGRESQL_URL = "postgres://ferretdb@localhost/ferretdb?host=/run/postgresql";
|
||||
};
|
||||
|
||||
systemd.services.ferretdb.serviceConfig = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user