e7edf29e11
All checks were successful
build configuration / build_and_cache_geo01 (push) Successful in 1m15s
build configuration / build_and_cache_geo02 (push) Successful in 1m16s
build configuration / build_and_cache_rescue01 (push) Successful in 1m18s
build configuration / build_and_cache_storage01 (push) Successful in 1m25s
build configuration / build_and_cache_vault01 (push) Successful in 1m33s
build configuration / build_and_cache_compute01 (push) Successful in 1m40s
lint / check (push) Successful in 23s
build configuration / build_and_cache_bridge01 (push) Successful in 1m2s
build configuration / build_and_cache_web03 (push) Successful in 1m10s
build configuration / build_and_cache_web02 (push) Successful in 1m12s
build configuration / build_and_cache_web01 (push) Successful in 1m42s
VPN dns is slow to start so nginx will fail
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
|
|
'';
|
|
};
|
|
};
|
|
};
|
|
}
|