nixos/dafoe/services/nginx.nix

58 lines
1.4 KiB
Nix
Raw Normal View History

2024-05-08 11:03:22 +02:00
{ lib, pkgs, inputs, ... }:
{
services.nginx = {
enable = true;
recommendedGzipSettings = true;
recommendedOptimisation = true;
recommendedProxySettings = true;
recommendedTlsSettings = true;
};
2024-06-17 16:47:54 +02:00
services.nginx.virtualHosts = let tld = "vatthauer.xyz"; in
{
"git.${tld}" = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://localhost:3001/";
};
2024-05-08 11:03:22 +02:00
};
};
2024-05-08 12:20:42 +02:00
services.nginx.virtualHosts."vaultwarden.vatthauer.xyz" = {
2024-05-08 11:03:22 +02:00
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://localhost:8222/";
};
};
services.nginx.virtualHosts."video.vatthauer.xyz" = {
enableACME = true;
forceSSL = false;
locations."/" = {
proxyPass = "http://localhost:8096";
};
};
2024-05-08 11:09:23 +02:00
services.nginx.virtualHosts."www.vatthauer.xyz" = {
2024-05-08 12:20:42 +02:00
serverAliases = [ "vatthauer.xyz" ];
2024-05-08 11:09:23 +02:00
forceSSL = true;
enableACME = true;
root = pkgs.callPackage ./resumee-website.nix {};
};
2024-05-08 11:03:22 +02:00
services.nginx.virtualHosts."files.vatthauer.xyz" = {
forceSSL = true;
enableACME = true;
2024-05-08 12:20:42 +02:00
locations."/" = {
root = "/var/www";
extraConfig = "autoindex on;";
};
2024-05-08 11:03:22 +02:00
};
2024-05-28 08:56:45 +02:00
services.nginx.virtualHosts."cloud.vatthauer.xyz" = {
forceSSL = true;
enableACME = true;
2024-05-29 08:27:05 +02:00
#locations."/".proxyPass = "http://localhost:8080";
2024-05-28 08:56:45 +02:00
# nextcloud does location setup itself
};
2024-05-08 11:03:22 +02:00
}