nix/modules/services/nginx/default.nix
2024-11-06 17:53:05 +01:00

38 lines
957 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;
locations."/".proxyPass = "http://localhost:8080";
};
virtualHosts."pin.joygnu.org" = {
forceSSL = true;
enableACME = true;
locations."/".proxyPass = "http://localhost:6060";
};
virtualHosts."trans.joygnu.org" = {
forceSSL = true;
enableACME = true;
locations."/".proxyPass = "http://localhost:5000";
};
};
security.acme.certs = {
"www.joygnu.org".email = "contact@joygnu.org";
};
}