add some server things

This commit is contained in:
stupidcomputer 2023-11-22 16:31:31 -06:00
parent 1d19db7c9e
commit 658701c197
2 changed files with 21 additions and 10 deletions

View File

@ -69,6 +69,12 @@
root = "/var/www/beepboop.systems"; root = "/var/www/beepboop.systems";
}; };
services.nginx.virtualHosts."cloud.beepboop.systems" = {
forceSSL = true;
enableACME = true;
locations."/".proxyPass = "http://localhost:4000";
};
services.nginx.virtualHosts."git.beepboop.systems" = { services.nginx.virtualHosts."git.beepboop.systems" = {
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;
@ -122,15 +128,15 @@
''; '';
}; };
services.paperless = { # services.paperless = {
enable = true; # enable = true;
passwordFile = "/etc/paperless-password"; # passwordFile = "/etc/paperless-password";
port = 3004; # port = 3004;
address = "localhost"; # address = "localhost";
extraConfig = { # extraConfig = {
PAPERLESS_URL = "https://paperless.beepboop.systems"; # PAPERLESS_URL = "https://paperless.beepboop.systems";
}; # };
}; # };
# services.ntfy-sh = { # services.ntfy-sh = {
# enable = true; # enable = true;
@ -143,5 +149,5 @@
# Open ports in the firewall. # Open ports in the firewall.
networking.firewall.enable = false; networking.firewall.enable = false;
networking.firewall.allowedTCPPorts = [ 55555 80 443 ]; networking.firewall.allowedTCPPorts = [ 5232 55555 80 443 ];
} }

View File

@ -30,6 +30,11 @@ in {
"postmaster@beepboop.systems" "postmaster@beepboop.systems"
]; ];
}; };
"mailsynchronization@beepboop.systems" = {
# nix-shell -p mkpasswd --run 'mkpasswd -sm bcrypt' > /hashed/password/file/location
hashedPasswordFile = "/etc/ryan-beepboop-systemsuser-pass";
};
}; };
certificateScheme = "acme-nginx"; certificateScheme = "acme-nginx";
}; };