nix/modules/services/nginx/default.nix
2024-11-06 19:04:28 +01:00

43 lines
1.1 KiB
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";
};
virtualHosts."wallpapers.joygnu.org" = {
forceSSL = true;
enableACME = true;
root = "/var/www/wallpapers.joygnu.org";
};
};
security.acme.certs = {
"www.joygnu.org".email = "contact@joygnu.org";
};
}