nixos/dafoe/services/nginx.nix

54 lines
1.2 KiB
Nix
Raw Normal View History

2024-06-17 17:13:21 +02:00
{ lib, pkgs, inputs, config, ... }:
2024-05-08 11:03:22 +02:00
{
services.nginx = {
enable = true;
recommendedGzipSettings = true;
recommendedOptimisation = true;
recommendedProxySettings = true;
recommendedTlsSettings = true;
};
2024-06-17 17:13:21 +02:00
services.nginx.virtualHosts = let domain = "vatthauer.xyz"; in
2024-06-17 16:47:54 +02:00
{
"config.domains.gitURL" = {
2024-06-17 16:47:54 +02:00
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://localhost:3001/";
};
2024-05-08 11:03:22 +02:00
};
2024-06-17 17:13:21 +02:00
"vaultwarden.${domain}" = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://localhost:8222/";
};
2024-05-08 11:03:22 +02:00
};
2024-06-17 17:13:21 +02:00
"video.${domain}" = {
enableACME = true;
forceSSL = false;
locations."/" = {
proxyPass = "http://localhost:8096";
};
2024-05-08 11:03:22 +02:00
};
2024-06-17 17:13:21 +02:00
"www.${domain}" = {
serverAliases = [ domain ];
forceSSL = true;
enableACME = true;
root = pkgs.callPackage ./resumee-website.nix {};
};
"files.${domain}" = {
forceSSL = true;
enableACME = true;
locations."/" = {
root = "/var/www";
extraConfig = "autoindex on;";
};
};
"cloud.${domain}" = {
forceSSL = true;
enableACME = true;
2024-05-08 12:20:42 +02:00
};
2024-05-28 08:56:45 +02:00
};
2024-05-08 11:03:22 +02:00
}