forked from DGNum/infrastructure
Tom Hubrecht
ecbad0a638
This adds subdirectories for the different types of systems, for the modules and the machines
15 lines
392 B
Nix
15 lines
392 B
Nix
{ pkgs, ... }:
|
|
{
|
|
services.nginx = {
|
|
virtualHosts."ollama01.beta.dgnum.eu" = {
|
|
enableACME = true;
|
|
forceSSL = true;
|
|
locations."/" = {
|
|
proxyPass = "http://100.80.103.206:11434";
|
|
basicAuthFile = pkgs.writeText "ollama-htpasswd" ''
|
|
raito:$y$j9T$UDEHpLtM52hRGK0I4qT6M0$N75AhENLqgtJnTGaPzq51imhjZvuPr.ow81Co1ZTcX2
|
|
'';
|
|
};
|
|
};
|
|
};
|
|
}
|