chatbot-ui -> big-agi
This commit is contained in:
parent
553155519c
commit
7cd59333cd
6 changed files with 25 additions and 27 deletions
23
hosts/servers/alexandria/big-agi.nix
Normal file
23
hosts/servers/alexandria/big-agi.nix
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{ inputs, config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
virtualisation.oci-containers.containers."big-agi" = {
|
||||
image = "ghcr.io/enricoros/big-agi:main";
|
||||
ports = [ "${config.ports.big-agi}:3000" ];
|
||||
environmentFiles = [ config.age.secrets.big-agi-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.big-agi}";
|
||||
};
|
||||
|
||||
age.secrets.big-agi-keys = {
|
||||
file = ../../../secrets/big-agi-keys.age;
|
||||
owner = "root";
|
||||
group = "root";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue