lemmyCfg should return a file
This commit is contained in:
parent
bcc09e9f3e
commit
2cd9bdc3ac
@ -92,22 +92,23 @@ let
|
|||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
lemmyCfg = { hostname, postgresPasswd, pictrsApiKey, smtpServer, ... }: {
|
lemmyCfg = { hostname, postgresPasswd, pictrsApiKey, smtpServer, ... }:
|
||||||
database = {
|
pkgs.writeText "lemmy.hjson" (builtins.toJSON {
|
||||||
host = "postgres";
|
database = {
|
||||||
password = postgresPasswd;
|
host = "postgres";
|
||||||
};
|
password = postgresPasswd;
|
||||||
hostname = hostname;
|
};
|
||||||
pictrs = {
|
hostname = hostname;
|
||||||
url = "http://pictrs:8080/";
|
pictrs = {
|
||||||
api_key = pictrsApiKey;
|
url = "http://pictrs:8080/";
|
||||||
};
|
api_key = pictrsApiKey;
|
||||||
email = {
|
};
|
||||||
smtp_server = smtpServer;
|
email = {
|
||||||
tls_type = "none";
|
smtp_server = smtpServer;
|
||||||
smtp_from_address = "noreply@${hostname}";
|
tls_type = "none";
|
||||||
};
|
smtp_from_address = "noreply@${hostname}";
|
||||||
};
|
};
|
||||||
|
});
|
||||||
|
|
||||||
lemmyDockerComposeCfg = { hostname, port, lemmyCfgFile, nginxCfgFile
|
lemmyDockerComposeCfg = { hostname, port, lemmyCfgFile, nginxCfgFile
|
||||||
, pictrsApiKey, stateDirectory, postgresPasswd, lemmyDockerImage
|
, pictrsApiKey, stateDirectory, postgresPasswd, lemmyDockerImage
|
||||||
|
Loading…
Reference in New Issue
Block a user