mirror of
https://github.com/versia-pub/activitypub.git
synced 2025-12-06 06:38:20 +01:00
awawwwa
This commit is contained in:
parent
1340f00167
commit
6af5ac94cd
|
|
@ -44,7 +44,7 @@ let
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
dbconfone = lib.mkIf cfg.database.createLocally {
|
dbconfone = lib.mkIf cfg.database.createLocally {
|
||||||
systemd.services.lysandap.Environment = {
|
systemd.services.lysandap.environment = {
|
||||||
DATABASE_URL = "postgresql:///${cfg.database.user}@localhost/${cfg.database.dbname}";
|
DATABASE_URL = "postgresql:///${cfg.database.user}@localhost/${cfg.database.dbname}";
|
||||||
"PORT" = "${toString cfg.port}";
|
"PORT" = "${toString cfg.port}";
|
||||||
"ADDRESS" = "${cfg.address}:${toString cfg.port}";
|
"ADDRESS" = "${cfg.address}:${toString cfg.port}";
|
||||||
|
|
@ -54,7 +54,7 @@ let
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
dbconftwo = lib.mkIf (cfg.database.createLocally == false) {
|
dbconftwo = lib.mkIf (cfg.database.createLocally == false) {
|
||||||
systemd.services.lysandap.Environment = {
|
systemd.services.lysandap.environment = {
|
||||||
DATABASE_URL = "postgresql://${cfg.database.user}:${cfg.database.passwordFile}@${cfg.database.host}:${toString cfg.database.port}/${cfg.database.dbname}";
|
DATABASE_URL = "postgresql://${cfg.database.user}:${cfg.database.passwordFile}@${cfg.database.host}:${toString cfg.database.port}/${cfg.database.dbname}";
|
||||||
"PORT" = "${toString cfg.port}";
|
"PORT" = "${toString cfg.port}";
|
||||||
"ADDRESS" = "${cfg.address}:${toString cfg.port}";
|
"ADDRESS" = "${cfg.address}:${toString cfg.port}";
|
||||||
|
|
@ -253,7 +253,7 @@ in
|
||||||
#requires = lib.optional cfg.database.createLocally "postgresql.service";
|
#requires = lib.optional cfg.database.createLocally "postgresql.service";
|
||||||
script = "${cfg.package}/bin/lysandap";
|
script = "${cfg.package}/bin/lysandap";
|
||||||
preStart = "${cfg.mig-package}/bin/ls-ap-migration up";
|
preStart = "${cfg.mig-package}/bin/ls-ap-migration up";
|
||||||
Environment = lib.mkDefault {
|
environment = lib.mkDefault {
|
||||||
"PORT" = "${toString cfg.port}";
|
"PORT" = "${toString cfg.port}";
|
||||||
"ADDRESS" = "${cfg.address}:${toString cfg.port}";
|
"ADDRESS" = "${cfg.address}:${toString cfg.port}";
|
||||||
"FEDERATED_DOMAIN" = cfg.domain;
|
"FEDERATED_DOMAIN" = cfg.domain;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue