nixos/dafoe/services/nginx.nix

55 lines
1.3 KiB
Nix
Raw 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."video.vatthauer.xyz" = {
enableACME = true;
forceSSL = false;
locations."/" = {
proxyPass = "http://localhost:8096";
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;
#locations."/".proxyPass = "http://localhost:8080";
# nextcloud does location setup itself
};
2024-05-08 11:03:22 +02:00
}