2024-12-12 14:41:43 +01:00
|
|
|
# SPDX-FileCopyrightText: 2024 Ryan Lahfa <ryan.lahfa@dgnum.eu>
|
|
|
|
# SPDX-FileContributor: Maurice Debray <maurice.debray@dgnum.eu>
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: EUPL-1.2
|
|
|
|
|
2024-10-18 11:34:46 +02:00
|
|
|
{ pkgs, ... }:
|
2024-10-10 17:35:40 +02:00
|
|
|
{
|
|
|
|
services.nginx = {
|
|
|
|
virtualHosts."ollama01.beta.dgnum.eu" = {
|
|
|
|
enableACME = true;
|
|
|
|
forceSSL = true;
|
|
|
|
locations."/" = {
|
2024-10-18 12:45:27 +02:00
|
|
|
proxyPass = "http://100.80.103.206:11434";
|
2024-10-10 17:35:40 +02:00
|
|
|
basicAuthFile = pkgs.writeText "ollama-htpasswd" ''
|
|
|
|
raito:$y$j9T$UDEHpLtM52hRGK0I4qT6M0$N75AhENLqgtJnTGaPzq51imhjZvuPr.ow81Co1ZTcX2
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|