Mastodon: Difference between revisions
imported>Onny mNo edit summary |
imported>Onny mNo edit summary |
||
Line 8: | Line 8: | ||
<syntaxHighlight lang=nix> | <syntaxHighlight lang=nix> | ||
services.mastodon = { | |||
enable = true; | |||
localDomain = "social.example.com"; # Replace with your own domain | |||
configureNginx = true; | |||
smtp.fromAddress = "noreply@social.example.com"; # Email address used by Mastodon to send emails, replace with your own | |||
extraConfig.SINGLE_USER_MODE = "true"; | |||
}; | |||
security.acme = { | |||
acceptTerms = true; | |||
defaults.email = "<EMAIL TO USE FOR CORRESPONDENCE WITH Let's Encrypt>"; | |||
}; | |||
</syntaxHighlight> | </syntaxHighlight> | ||