nixos/dafoe/services/nginx.nix

46 lines
1.1 KiB
Nix
Raw Permalink Normal View History

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