Refactor isso configuration to use structured server settings and update service dependencies
This commit is contained in:
@@ -18,13 +18,16 @@ in
|
||||
inherit (cfg) enable;
|
||||
settings = {
|
||||
guard.require-author = true;
|
||||
server.listen = "http://${cfg.ip}:${toString cfg.port}/";
|
||||
server = {
|
||||
listen = "http://${cfg.ip}:${toString cfg.port}/";
|
||||
public-endpoint = cfg.url;
|
||||
};
|
||||
admin = {
|
||||
enabled = true;
|
||||
password = "$ISSO_ADMIN_PASSWORD";
|
||||
};
|
||||
general = {
|
||||
host = cfg.url;
|
||||
host = "https://blog.${cfg.domain}";
|
||||
max-age = "1h";
|
||||
notify = "smtp";
|
||||
reply-notifications = true;
|
||||
@@ -41,6 +44,10 @@ in
|
||||
};
|
||||
};
|
||||
};
|
||||
systemd.services.isso.serviceConfig.EnvironmentFile = config.sops.secrets.isso.path;
|
||||
systemd.services.isso = {
|
||||
after = [ "network-online.target" ];
|
||||
wants = [ "network-online.target" ];
|
||||
serviceConfig.EnvironmentFile = config.sops.secrets.isso.path;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user