feat(krz01): Move to lab-infra repo

This commit is contained in:
sinavir 2024-10-18 11:34:46 +02:00
parent 113c83bb9c
commit 1a05ea3a9a
22 changed files with 2 additions and 843 deletions

View file

@ -1,16 +1,11 @@
{
pkgs,
nodes,
meta,
...
}:
{ pkgs, ... }:
{
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}";
proxyPass = "http://krz01.dgnum:11434";
basicAuthFile = pkgs.writeText "ollama-htpasswd" ''
raito:$y$j9T$UDEHpLtM52hRGK0I4qT6M0$N75AhENLqgtJnTGaPzq51imhjZvuPr.ow81Co1ZTcX2
'';