Added chatbot-ui container
This commit is contained in:
parent
29dbfbfc22
commit
3c36c4a481
6 changed files with 31 additions and 0 deletions
23
hosts/servers/alexandria/chatbot-ui.nix
Normal file
23
hosts/servers/alexandria/chatbot-ui.nix
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{ inputs, config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
virtualisation.oci-containers.containers."chatbot-ui" = {
|
||||
image = "ghcr.io/mckaywrigley/chatbot-ui:main";
|
||||
ports = [ "${config.ports.chatbot-ui}:5006" ];
|
||||
environmentFiles = [ config.age.secrets.chatbot-ui-keys.path ];
|
||||
extraOptions = [ "--pull=always" ];
|
||||
};
|
||||
|
||||
services.nginx.virtualHosts."chat.baduhai.me" = {
|
||||
useACMEHost = "baduhai.me";
|
||||
forceSSL = true;
|
||||
kTLS = true;
|
||||
locations."/".proxyPass = "http://127.0.0.1:${config.ports.chatbot-ui}";
|
||||
};
|
||||
|
||||
age.secrets.chatbot-ui-keys = {
|
||||
file = ../../../secrets/chatbot-ui-keys.age;
|
||||
owner = "root";
|
||||
group = "root";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue