nix/modules/services/nginx/default.nix
2024-11-08 19:23:25 +01:00

40 lines
1,019 B
Nix

{domain, ...}: {
services.nginx = {
virtualHosts."xn--xck.xyz" = {
forceSSL = true;
enableACME = true;
root = "/var/www/${domain}";
};
virtualHosts."${domain}" = {
forceSSL = true;
enableACME = true;
root = "/var/www/www.${domain}";
};
virtualHosts."www.${domain}" = {
forceSSL = true;
enableACME = true;
root = "/var/www/${domain}";
};
virtualHosts."4get.${domain}" = {
forceSSL = true;
enableACME = true;
locations."/".proxyPass = "http://localhost:8080";
};
virtualHosts."pin.${domain}" = {
forceSSL = true;
enableACME = true;
locations."/".proxyPass = "http://localhost:6060";
};
virtualHosts."trans.${domain}" = {
forceSSL = true;
enableACME = true;
locations."/".proxyPass = "http://localhost:5000";
};
virtualHosts."wallpapers.${domain}" = {
forceSSL = true;
enableACME = true;
root = "/var/www/wallpapers.${domain}";
};
};
}