mirror of
https://github.com/Nickiel12/nicks-nix-config.git
synced 2024-11-22 20:59:32 -08:00
32 lines
824 B
Nix
32 lines
824 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
services.nginx = {
|
|
enable = true;
|
|
recommendedGzipSettings = true;
|
|
recommendedOptimisation = true;
|
|
recommendedProxySettings = true;
|
|
recommendedTlsSettings = true;
|
|
|
|
virtualHosts = {
|
|
"nickiel.net" = {
|
|
forceSSL = true;
|
|
sslCertificate = "/Aurora/nickiel.net.pem";
|
|
sslCertificateKey = "/Aurora/nickiel.net.key";
|
|
locations."/" = {
|
|
root = "/var/lib/acme/nickiel.net";
|
|
};
|
|
};
|
|
|
|
"files.nickiel.net" = {
|
|
forceSSL = true;
|
|
sslCertificate = "/Aurora/nickiel.net.pem";
|
|
sslCertificateKey = "/Aurora/nickiel.net.key";
|
|
locations."/" = {
|
|
proxyPass = "http://192.168.100.11:80";
|
|
proxyWebsockets = true;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|