ghost: add mastodon

This commit is contained in:
Leonardo Eugênio 2023-10-15 01:28:01 -03:00
parent 9c1709c039
commit 5eca20902c
2 changed files with 25 additions and 12 deletions

View file

@ -70,6 +70,14 @@
};
};
services.mastodon = {
enable = true;
localDomain = "social.lelgenio.xyz";
configureNginx = true;
smtp.fromAddress = "lelgenio@disroot.org";
extraConfig.SINGLE_USER_MODE = "true";
};
services.nginx.virtualHosts.${config.services.nextcloud.hostName} = {
forceSSL = true;
enableACME = true;
@ -81,6 +89,11 @@
networking.firewall.allowedTCPPorts = [ 80 443 ];
swapDevices = [{
device = "/swap/swapfile";
size = (1024 * 2); # 2 GB
}];
system.stateVersion = "23.05"; # Never change this
}