2023-04-05 21:10:58 -07:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
services.nginx = {
|
2023-04-07 16:50:38 -07:00
|
|
|
enable = true;
|
2023-04-05 21:10:58 -07:00
|
|
|
recommendedGzipSettings = true;
|
|
|
|
recommendedOptimisation = true;
|
|
|
|
recommendedProxySettings = true;
|
|
|
|
recommendedTlsSettings = true;
|
|
|
|
|
2023-04-07 16:50:38 -07:00
|
|
|
virtualHosts = {
|
|
|
|
"nickiel.net" = {
|
2023-04-08 10:48:21 -07:00
|
|
|
forceSSL = true;
|
|
|
|
sslCertificate = "/Aurora/nickiel.net.pem";
|
|
|
|
sslCertificateKey = "/Aurora/nickiel.net.key";
|
2023-04-07 16:50:38 -07:00
|
|
|
locations."/" = {
|
|
|
|
root = "/var/lib/acme/nickiel.net";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
"files.nickiel.net" = {
|
2023-04-08 10:48:21 -07:00
|
|
|
forceSSL = true;
|
|
|
|
sslCertificate = "/Aurora/nickiel.net.pem";
|
|
|
|
sslCertificateKey = "/Aurora/nickiel.net.key";
|
2023-04-07 16:50:38 -07:00
|
|
|
locations."/" = {
|
|
|
|
proxyPass = "http://192.168.100.11:80";
|
|
|
|
proxyWebsockets = true;
|
|
|
|
};
|
|
|
|
};
|
2023-04-05 21:10:58 -07:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|