mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-04-20 03:34:07 +02:00
run mastadon in main
This commit is contained in:
parent
0649b83930
commit
12c1ae47aa
1 changed files with 8 additions and 18 deletions
|
@ -95,22 +95,19 @@ in
|
||||||
chrootlocalUser = true;
|
chrootlocalUser = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.mastodon = {
|
||||||
|
enable = true;
|
||||||
|
streamingProcesses = (lib.elemAt config.facter.report.hardware.cpu 0).cores - 1;
|
||||||
|
localDomain = "nyan.social";
|
||||||
|
smtp.fromAddress = "mastodon@nyan.social";
|
||||||
|
configureNginx = true;
|
||||||
|
};
|
||||||
|
|
||||||
users.users.backupftp = {
|
users.users.backupftp = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
initialPassword = "backupPassword";
|
initialPassword = "backupPassword";
|
||||||
};
|
};
|
||||||
|
|
||||||
services.nginx = {
|
|
||||||
virtualHosts."${config.containers.nyan.config.services.mastodon.localDomain}" = {
|
|
||||||
forceSSL = true;
|
|
||||||
enableACME = true;
|
|
||||||
locations."/" = {
|
|
||||||
proxyPass = "http://192.168.100.5";
|
|
||||||
proxyWebsockets = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
containers = {
|
containers = {
|
||||||
nyan = {
|
nyan = {
|
||||||
privateNetwork = true;
|
privateNetwork = true;
|
||||||
|
@ -118,13 +115,6 @@ in
|
||||||
localAddress = "192.168.100.5/24";
|
localAddress = "192.168.100.5/24";
|
||||||
config = {
|
config = {
|
||||||
system.stateVersion = "25.05";
|
system.stateVersion = "25.05";
|
||||||
services.mastodon = {
|
|
||||||
enable = true;
|
|
||||||
streamingProcesses = (lib.elemAt config.facter.report.hardware.cpu 0).cores - 1;
|
|
||||||
localDomain = "nyan.social";
|
|
||||||
smtp.fromAddress = "mastodon@nyan.social";
|
|
||||||
configureNginx = true;
|
|
||||||
};
|
|
||||||
services.nginx = {
|
services.nginx = {
|
||||||
virtualHosts."${config.containers.nyan.config.services.mastodon.localDomain}" = {
|
virtualHosts."${config.containers.nyan.config.services.mastodon.localDomain}" = {
|
||||||
forceSSL = false;
|
forceSSL = false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue