feat(focus): add nginx
This commit is contained in:
parent
30f569afaa
commit
f6c76320ef
24
spec/focus/nginx.nix
Normal file
24
spec/focus/nginx.nix
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
{
|
||||||
|
services.nginx = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
# enable all recommended settings
|
||||||
|
recommendedTlsSettings = true;
|
||||||
|
recommendedOptimisation = true;
|
||||||
|
recommendedGzipSettings = true;
|
||||||
|
recommendedProxySettings = true;
|
||||||
|
|
||||||
|
# set a reasonable default
|
||||||
|
clientMaxBodySize = "64m";
|
||||||
|
|
||||||
|
virtualHosts = {
|
||||||
|
"_" = {
|
||||||
|
addSSL = true;
|
||||||
|
useACMEHost = ".sf.514fpv.io";
|
||||||
|
extraConfig = "return 444;";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
||||||
|
}
|
Loading…
Reference in a new issue