copy nb configuration and modules
This commit is contained in:
parent
1af70a3095
commit
127eab91d5
114 changed files with 9070 additions and 0 deletions
32
utils/modules/nginx.nix
Normal file
32
utils/modules/nginx.nix
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
imagemagick
|
||||
ghostscript
|
||||
];
|
||||
|
||||
systemd.services.nginx.serviceConfig.ProtectHome = "read-only";
|
||||
|
||||
systemd.services.nginx_setup = {
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
before = [ "nginx.service" ];
|
||||
script = ''
|
||||
mkdir -p /var/www
|
||||
chown nginx:nginx /var/www
|
||||
chmod 755 /var/www
|
||||
'';
|
||||
serviceConfig.Type = "oneshot";
|
||||
};
|
||||
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
|
||||
recommendedGzipSettings = true;
|
||||
recommendedOptimisation = true;
|
||||
recommendedProxySettings = true;
|
||||
recommendedTlsSettings = true;
|
||||
|
||||
sslCiphers = "AES256+EECDH:AES256+EDH:!aNULL";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue