36 lines
866 B
Nix
36 lines
866 B
Nix
{ base-domain, ... }:
|
|
{
|
|
services.nginx = {
|
|
enable = true;
|
|
recommendedTlsSettings = true;
|
|
recommendedOptimisation = true;
|
|
recommendedGzipSettings = true;
|
|
recommendedProxySettings = true;
|
|
serverNamesHashBucketSize = 128;
|
|
virtualHosts = {
|
|
"${base-domain}" = {
|
|
enableACME = true;
|
|
forceSSL = true;
|
|
locations."/" = {
|
|
proxyPass = "http://localhost:28981";
|
|
};
|
|
};
|
|
"sourcehut.${base-domain}" = {
|
|
enableACME = true;
|
|
};
|
|
"meta.sourcehut.${base-domain}" = {
|
|
enableACME = true;
|
|
};
|
|
"git.sourcehut.${base-domain}" = {
|
|
enableACME = true;
|
|
};
|
|
"paperless.${base-domain}" = {
|
|
enableACME = true;
|
|
forceSSL = true;
|
|
locations."/" = {
|
|
proxyPass = "http://localhost:28981";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|