nix/modules/services/nginx/default.nix

31 lines
723 B
Nix

{
services.nginx = {
virtualHosts."xn--xck.xyz" = {
forceSSL = true;
enableACME = true;
root = "/var/www/www.joygnu.org";
};
virtualHosts."joygnu.org" = {
forceSSL = true;
enableACME = true;
root = "/var/www/www.joygnu.org";
};
virtualHosts."www.joygnu.org" = {
forceSSL = true;
enableACME = true;
root = "/var/www/www.joygnu.org";
};
virtualHosts."4get.joygnu.org" = {
forceSSL = true;
enableACME = true;
extraConfig = ''
client_max_body_size 512M;
'';
locations."/".proxyPass = "http://localhost:8080";
};
};
security.acme.certs = {
"www.joygnu.org".email = "contact@joygnu.org";
};
}