2024-10-13 18:14:29 -05:00
|
|
|
{pkgs, ...}: {
|
2024-10-13 15:16:39 -05:00
|
|
|
imports = [
|
|
|
|
./vcnotifier.nix
|
|
|
|
# ./nodemusicbot.nix
|
|
|
|
./breeze.nix
|
|
|
|
./min-rip.nix
|
|
|
|
./gitea.nix
|
|
|
|
./synapse.nix
|
|
|
|
];
|
|
|
|
|
|
|
|
security.acme = {
|
|
|
|
acceptTerms = true;
|
|
|
|
defaults.email = "minishcontact@riseup.net";
|
|
|
|
};
|
|
|
|
|
|
|
|
services.nginx = {
|
|
|
|
enable = true;
|
2024-10-13 18:14:29 -05:00
|
|
|
package = pkgs.nginxQuic;
|
|
|
|
|
2024-10-13 15:16:39 -05:00
|
|
|
recommendedZstdSettings = true;
|
|
|
|
recommendedGzipSettings = true;
|
|
|
|
recommendedBrotliSettings = true;
|
|
|
|
recommendedTlsSettings = true;
|
|
|
|
recommendedOptimisation = true;
|
|
|
|
recommendedProxySettings = true;
|
|
|
|
|
|
|
|
# proxy_http_version is already set to 1.1 by recommendedProxySettings
|
|
|
|
appendHttpConfig = ''
|
|
|
|
proxy_request_buffering off;
|
|
|
|
'';
|
|
|
|
|
|
|
|
clientMaxBodySize = "0";
|
|
|
|
};
|
|
|
|
networking.firewall.allowedTCPPorts = [22 80 443]; # exposed by nginx
|
|
|
|
networking.firewall.allowedUDPPorts = [443];
|
|
|
|
}
|