feat: add nginx config
This commit is contained in:
parent
f6425103b7
commit
e23b49d9e2
4 changed files with 24 additions and 2 deletions
|
@ -49,5 +49,13 @@
|
|||
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";
|
||||
}
|
||||
|
|
|
@ -44,7 +44,7 @@
|
|||
let pkgs = nixpkgs.legacyPackages.${system};
|
||||
in {
|
||||
devShell = pkgs.mkShell {
|
||||
buildInputs = with pkgs; [ colmena.packages.${system}.colmena ];
|
||||
buildInputs = [ colmena.packages.${system}.colmena ];
|
||||
};
|
||||
});
|
||||
}
|
||||
|
|
|
@ -7,4 +7,11 @@
|
|||
machine-learning.enable = true;
|
||||
host = "localhost";
|
||||
};
|
||||
|
||||
services.nginx.virtualHosts."immich.rz01.infra.dgnum.eu" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
serverAliases = [];
|
||||
locations."/".proxyPass = "http://localhost:3001/";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -17,4 +17,11 @@
|
|||
|
||||
passwordFile = "/passwords/photoprism";
|
||||
};
|
||||
|
||||
services.nginx.virtualHosts."photoprism.rz01.infra.dgnum.eu" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
serverAliases = [];
|
||||
locations."/".proxyPass = "http://localhost:2342/";
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue