2024-10-28 00:17:05 +01:00
|
|
|
{pkgs, ...}: {
|
2023-11-27 14:03:06 +01:00
|
|
|
users.users.gotosocial.extraGroups = ["virtualMail"];
|
|
|
|
|
|
|
|
services.nginx = {
|
|
|
|
virtualHosts = {
|
|
|
|
"social.gladtherescake.eu" = {
|
|
|
|
forceSSL = true;
|
|
|
|
enableACME = true;
|
|
|
|
locations."/" = {
|
|
|
|
proxyPass = "http://localhost:4257";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
services.gotosocial = {
|
|
|
|
enable = true;
|
2023-11-27 15:06:57 +01:00
|
|
|
package = pkgs.gotosocial;
|
2023-11-27 14:03:06 +01:00
|
|
|
setupPostgresqlDB = true;
|
|
|
|
settings = {
|
|
|
|
application-name = "gotosocial";
|
|
|
|
host = "social.gladtherescake.eu";
|
|
|
|
bind-address = "localhost";
|
|
|
|
port = 4257;
|
|
|
|
protocol = "https";
|
|
|
|
storage-local-base-path = "/var/lib/gotosocial/storage";
|
|
|
|
instance-languages = ["en-gb" "nl"];
|
|
|
|
media-image-max-size = 41943040;
|
|
|
|
media-video-max-size = 209715200;
|
|
|
|
media-description-max-chars = 2000;
|
2024-01-19 01:04:02 +01:00
|
|
|
#smtp-host = "localhost";
|
|
|
|
#smtp-port = 587;
|
|
|
|
#smtp-username = "no-reply@social.gladtherescake.eu";
|
|
|
|
#smtp-password = config.sops.secrets."mailpassunhash".path;
|
|
|
|
#smtp-from = "no-reply@social.gladtherescake.eu";
|
2023-11-27 14:03:06 +01:00
|
|
|
};
|
|
|
|
};
|
2023-11-27 15:06:57 +01:00
|
|
|
|
|
|
|
systemd.services."gotosocial" = {
|
|
|
|
requires = ["postgresql.service"];
|
|
|
|
after = ["postgresql.service"];
|
|
|
|
};
|
2023-11-27 14:03:06 +01:00
|
|
|
}
|