Mailman fixes #32
|
@ -46,6 +46,7 @@
|
||||||
HTTP_ADDR = "127.0.0.1";
|
HTTP_ADDR = "127.0.0.1";
|
||||||
HTTP_PORT = 3000;
|
HTTP_PORT = 3000;
|
||||||
};
|
};
|
||||||
|
log.LEVEL = "Warn";
|
||||||
mailer = {
|
mailer = {
|
||||||
ENABLED = true;
|
ENABLED = true;
|
||||||
PROTOCOL = "smtps";
|
PROTOCOL = "smtps";
|
||||||
|
|
|
@ -8,6 +8,19 @@
|
||||||
{
|
{
|
||||||
networking.firewall.allowedTCPPorts = [25];
|
networking.firewall.allowedTCPPorts = [25];
|
||||||
|
|
||||||
|
users.users.nginx.extraGroups = [ "mailman" ];
|
||||||
|
|
||||||
|
services.nginx.virtualHosts."list.pub.solar" = {
|
||||||
|
enableACME = true;
|
||||||
|
forceSSL = true;
|
||||||
|
};
|
||||||
|
# Tweak permissions so nginx can read and serve the static assets
|
||||||
|
# (otherwise /var/lib/mailman-web is mode 0600)
|
||||||
|
# https://nixos.wiki/wiki/Mailman
|
||||||
|
systemd.services.mailman-settings.script = ''
|
||||||
|
chmod o+x /var/lib/mailman-web-static
|
||||||
|
'';
|
||||||
|
|
||||||
services.postfix = {
|
services.postfix = {
|
||||||
enable = true;
|
enable = true;
|
||||||
relayDomains = ["hash:/var/lib/mailman/data/postfix_domains"];
|
relayDomains = ["hash:/var/lib/mailman/data/postfix_domains"];
|
||||||
|
|
|
@ -32,6 +32,9 @@
|
||||||
owner = config.services.mastodon.user;
|
owner = config.services.mastodon.user;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Nginx user needs access to mastodon unix sockets
|
||||||
|
users.users.nginx.extraGroups = [ "mastodon" ];
|
||||||
|
|
||||||
services.mastodon = {
|
services.mastodon = {
|
||||||
enable = true;
|
enable = true;
|
||||||
# Different from WEB_DOMAIN in our case
|
# Different from WEB_DOMAIN in our case
|
||||||
|
|
|
@ -17,8 +17,6 @@ in {
|
||||||
};
|
};
|
||||||
recommendedProxySettings = true;
|
recommendedProxySettings = true;
|
||||||
};
|
};
|
||||||
# Nginx user needs access to mastodon unix sockets
|
|
||||||
users.users.nginx.extraGroups = [ "mastodon" ];
|
|
||||||
|
|
||||||
security.acme = {
|
security.acme = {
|
||||||
acceptTerms = true;
|
acceptTerms = true;
|
||||||
|
|
Loading…
Reference in a new issue