2024-06-20 20:00:55 -05:00
|
|
|
{ lib, config, pkgs, ... }:
|
|
|
|
{
|
|
|
|
services.nginx.enable = true;
|
|
|
|
services.nginx.clientMaxBodySize = "100m";
|
|
|
|
services.nginx.defaultSSLListenPort = 442;
|
|
|
|
|
|
|
|
services.nginx.virtualHosts."beepboop.systems" = {
|
|
|
|
forceSSL = true;
|
|
|
|
enableACME = true;
|
|
|
|
root = "/var/www/beepboop.systems";
|
|
|
|
locations."/" = {
|
|
|
|
extraConfig = ''
|
|
|
|
port_in_redirect off;
|
|
|
|
absolute_redirect off;
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-10-22 08:22:06 -05:00
|
|
|
services.nginx.virtualHosts."tfb.beepboop.systems" = {
|
2024-12-19 17:23:02 -06:00
|
|
|
forceSSL = true;
|
|
|
|
enableACME = true;
|
|
|
|
locations."/" = {
|
|
|
|
extraConfig = ''
|
|
|
|
return 301 https://marching.beepboop.systems;
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
locations."/groupme" = {
|
|
|
|
proxyPass = "http://10.100.0.2:7439";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
services.nginx.virtualHosts."marching.beepboop.systems" = {
|
2024-10-22 08:22:06 -05:00
|
|
|
forceSSL = true;
|
|
|
|
enableACME = true;
|
|
|
|
root = "/var/www/tfb.beepboop.systems";
|
|
|
|
locations."/" = {
|
|
|
|
extraConfig = ''
|
|
|
|
port_in_redirect off;
|
|
|
|
absolute_redirect off;
|
|
|
|
'';
|
|
|
|
};
|
2024-11-09 20:08:44 -06:00
|
|
|
locations."/groupme" = {
|
|
|
|
proxyPass = "http://10.100.0.2:7439";
|
|
|
|
};
|
2024-10-22 08:22:06 -05:00
|
|
|
};
|
|
|
|
|
2024-06-20 20:00:55 -05:00
|
|
|
security.acme = {
|
|
|
|
acceptTerms = true;
|
|
|
|
defaults.email = "nickforanick@protonmail.com";
|
|
|
|
};
|
|
|
|
}
|