feat: add nginx config

This commit is contained in:
Constantin Gierczak--Galle 2024-10-14 14:53:27 +02:00
parent f6425103b7
commit e23b49d9e2
No known key found for this signature in database
4 changed files with 24 additions and 2 deletions

View file

@ -49,5 +49,13 @@
linkConfig.RequiredForOnline = "routable"; linkConfig.RequiredForOnline = "routable";
}; };
system.stateVersion = "23.11"; # NOTE: for now, we use internal ports
# TODO: switch to unixsockets if supported
services.nginx = {
enable = true;
recommendedGzipSettings = true;
};
system.stateVersion = "24.05";
} }

View file

@ -44,7 +44,7 @@
let pkgs = nixpkgs.legacyPackages.${system}; let pkgs = nixpkgs.legacyPackages.${system};
in { in {
devShell = pkgs.mkShell { devShell = pkgs.mkShell {
buildInputs = with pkgs; [ colmena.packages.${system}.colmena ]; buildInputs = [ colmena.packages.${system}.colmena ];
}; };
}); });
} }

View file

@ -7,4 +7,11 @@
machine-learning.enable = true; machine-learning.enable = true;
host = "localhost"; host = "localhost";
}; };
services.nginx.virtualHosts."immich.rz01.infra.dgnum.eu" = {
enableACME = true;
forceSSL = true;
serverAliases = [];
locations."/".proxyPass = "http://localhost:3001/";
};
} }

View file

@ -17,4 +17,11 @@
passwordFile = "/passwords/photoprism"; passwordFile = "/passwords/photoprism";
}; };
services.nginx.virtualHosts."photoprism.rz01.infra.dgnum.eu" = {
enableACME = true;
forceSSL = true;
serverAliases = [];
locations."/".proxyPass = "http://localhost:2342/";
};
} }