2024-08-16 15:23:55 +02:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
sops.secrets."writefreely".mode = "0440";
|
|
|
|
sops.secrets."writefreely".owner = config.users.users.writefreely.name;
|
2024-08-16 15:35:18 +02:00
|
|
|
sops.secrets."writefreelymysql".mode = "0440";
|
|
|
|
sops.secrets."writefreelymysql".owner = config.users.users.writefreely.name;
|
2024-08-16 15:23:55 +02:00
|
|
|
services.writefreely = {
|
|
|
|
enable = true;
|
2024-08-16 15:32:50 +02:00
|
|
|
host = "writefreely.gladtherescake.eu";
|
2024-08-16 15:23:55 +02:00
|
|
|
nginx.enable = true;
|
|
|
|
nginx.forceSSL = true;
|
|
|
|
acme.enable = true;
|
|
|
|
database = {
|
2024-08-16 15:58:26 +02:00
|
|
|
# type = "mysql";
|
|
|
|
# createLocally = true;
|
|
|
|
# passwordFile = config.sops.secrets."writefreelymysql".path;
|
2024-08-16 15:23:55 +02:00
|
|
|
};
|
|
|
|
admin = {
|
|
|
|
initialPasswordFile = config.sops.secrets."writefreely".path;
|
|
|
|
name = "GLaDTheresCake";
|
|
|
|
};
|
|
|
|
settings = {
|
2024-08-16 20:01:55 +02:00
|
|
|
app = {
|
|
|
|
min_username_len = 2;
|
|
|
|
max_blogs = 100;
|
|
|
|
default_visibility = "public";
|
|
|
|
federation = true;
|
|
|
|
};
|
2024-08-16 15:37:13 +02:00
|
|
|
server.port = 15763;
|
2024-08-16 15:23:55 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|