@rendakuenthusiast:imperishable.name | vhostLocal = { localPort, addlLocationConfig ? {} }: {
forceSSL = true;
enableACME = true;
listen = [ {addr = "localhost"; port = customPorts.nginxHttp; ssl = false; }
{ addr = "localhost"; port = customPorts.nginxHttps; ssl = true; }
];
locations = {
"/" = {
proxyPass = "http://localhost:${(toString localPort)}";
extraConfig = ''
proxy_set_header Host $host;
'';
};
} // addlLocationConfig;
};
| 04:50:16 |