nginx: basic setup complete (copied from my own stuff)
This commit is contained in:
parent
fe93f796a6
commit
c38a2cfd7a
1 changed files with 20 additions and 0 deletions
20
applications/nginx.nix
Normal file
20
applications/nginx.nix
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
# using K900's one https://gitlab.com/K900/nix/-/blob/a69502b8bf39fd99a85342b2f7989fe5896a6ae0/applications/base/nginx.nix
|
||||||
|
|
||||||
|
{pkgs, ...}: {
|
||||||
|
services.nginx = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.nginxMainline;
|
||||||
|
|
||||||
|
recommendedOptimisation = true;
|
||||||
|
recommendedTlsSettings = true;
|
||||||
|
recommendedGzipSettings = true;
|
||||||
|
recommendedProxySettings = true;
|
||||||
|
|
||||||
|
statusPage = true;
|
||||||
|
|
||||||
|
# give Nginx access to our certs
|
||||||
|
group = "acme";
|
||||||
|
};
|
||||||
|
|
||||||
|
networking.firewall.allowedTCPPorts = [80 443];
|
||||||
|
}
|
Loading…
Reference in a new issue