server: add ollama
This commit is contained in:
parent
7bdc00290e
commit
893d31d52c
@ -17,7 +17,8 @@
|
||||
./nextcloud.nix
|
||||
./matrix.nix
|
||||
./coturn.nix
|
||||
#./jitsi.nix
|
||||
./jitsi.nix
|
||||
#./ollama.nix
|
||||
]
|
||||
|
||||
# picom, polybar and sxhkd are pulled from desktop module
|
||||
|
23
modules/services/server/ollama.nix
Normal file
23
modules/services/server/ollama.nix
Normal file
@ -0,0 +1,23 @@
|
||||
|
||||
{ config, pkgs, ... }:
|
||||
let
|
||||
ollamahostname = "llm.kabtop.de";
|
||||
in
|
||||
{
|
||||
services.ollama = {
|
||||
enable = true;
|
||||
listenAddress = "127.0.0.1:11434";
|
||||
};
|
||||
|
||||
services.nginx = {
|
||||
virtualHosts = {
|
||||
ollamahostname = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
listen = [ {
|
||||
addr = "127.0.0.1"; port = 11434;
|
||||
} ];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user