quasar/nginx.nix
Khaïs COLIN def10ec06d fix(teedy): use correct port for proxypass
since using network=host, the ports directive has no effect
2024-08-25 13:33:19 +02:00

38 lines
896 B
Nix

{ base-domain, ... }:
{
services.nginx = {
enable = true;
recommendedTlsSettings = true;
recommendedOptimisation = true;
recommendedGzipSettings = true;
recommendedProxySettings = true;
virtualHosts = {
"${base-domain}" = {
enableACME = true;
};
"sourcehut.${base-domain}" = {
enableACME = true;
};
"meta.sourcehut.${base-domain}" = {
enableACME = true;
};
"git.sourcehut.${base-domain}" = {
enableACME = true;
};
"docspell.${base-domain}" = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://localhost:7879";
};
};
"teedy.${base-domain}" = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://localhost:8080";
};
};
};
};
}