forked from DGNum/infrastructure
20 lines
476 B
Nix
20 lines
476 B
Nix
{
|
|
pkgs,
|
|
nodes,
|
|
meta,
|
|
...
|
|
}:
|
|
{
|
|
services.nginx = {
|
|
virtualHosts."ollama01.beta.dgnum.eu" = {
|
|
enableACME = true;
|
|
forceSSL = true;
|
|
locations."/" = {
|
|
proxyPass = "http://${meta.network.krz01.netbirdIp}:${toString nodes.krz01.config.services.ollama.port}";
|
|
basicAuthFile = pkgs.writeText "ollama-htpasswd" ''
|
|
raito:$y$j9T$UDEHpLtM52hRGK0I4qT6M0$N75AhENLqgtJnTGaPzq51imhjZvuPr.ow81Co1ZTcX2
|
|
'';
|
|
};
|
|
};
|
|
};
|
|
}
|