mirror of
https://github.com/versia-pub/activitypub.git
synced 2025-12-06 06:38:20 +01:00
fix: let eepy
This commit is contained in:
parent
09874fce92
commit
571f65e2fa
20
module.nix
20
module.nix
|
|
@ -44,10 +44,24 @@ let
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
dbconfone = lib.mkIf cfg.database.createLocally {
|
dbconfone = lib.mkIf cfg.database.createLocally {
|
||||||
systemd.services.lysandap.serviceConfig.Environment.DATABASE_URL = "postgresql:///${cfg.database.user}@localhost/${cfg.database.dbname}";
|
systemd.services.lysandap.serviceConfig.Environment = {
|
||||||
|
DATABASE_URL = "postgresql:///${cfg.database.user}@localhost/${cfg.database.dbname}";
|
||||||
|
"PORT" = "${toString cfg.port}";
|
||||||
|
"ADDRESS" = "${cfg.address}:${toString cfg.port}";
|
||||||
|
"FEDERATED_DOMAIN" = cfg.domain;
|
||||||
|
"SERVICE_SCALE" = toString cfg.serviceScale;
|
||||||
|
"LOCAL_USER_NAME" = "example";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
dbconftwo = lib.mkIf (cfg.database.createLocally == false) {
|
dbconftwo = lib.mkIf (cfg.database.createLocally == false) {
|
||||||
systemd.services.lysandap.serviceConfig.Environment.DATABASE_URL = "postgresql://${cfg.database.user}:${cfg.database.passwordFile}@${cfg.database.host}:${toString cfg.database.port}/${cfg.database.dbname}";
|
systemd.services.lysandap.serviceConfig.Environment = {
|
||||||
|
DATABASE_URL = "postgresql://${cfg.database.user}:${cfg.database.passwordFile}@${cfg.database.host}:${toString cfg.database.port}/${cfg.database.dbname}";
|
||||||
|
"PORT" = "${toString cfg.port}";
|
||||||
|
"ADDRESS" = "${cfg.address}:${toString cfg.port}";
|
||||||
|
"FEDERATED_DOMAIN" = cfg.domain;
|
||||||
|
"SERVICE_SCALE" = toString cfg.serviceScale;
|
||||||
|
"LOCAL_USER_NAME" = "example";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
nginxConfig = lib.mkIf cfg.nginx.enable {
|
nginxConfig = lib.mkIf cfg.nginx.enable {
|
||||||
services.nginx =
|
services.nginx =
|
||||||
|
|
@ -241,7 +255,7 @@ in
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
ExecStart = "${cfg.package}/bin/lysandap";
|
ExecStart = "${cfg.package}/bin/lysandap";
|
||||||
ExecStartPre = "${cfg.mig-package}/bin/ls-ap-migration up";
|
ExecStartPre = "${cfg.mig-package}/bin/ls-ap-migration up";
|
||||||
Environment = {
|
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