big-agi -> gptnw

This commit is contained in:
rotterdam 2023-06-02 18:29:51 -03:00
parent f1df340f9b
commit 4b91663bb8
6 changed files with 25 additions and 25 deletions

View file

@ -1,23 +0,0 @@
{ 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";
};
}

View file

@ -0,0 +1,23 @@
{ inputs, config, pkgs, lib, ... }:
{
virtualisation.oci-containers.containers."gptnw" = {
image = "yidadaa/chatgpt-next-web";
ports = [ "${config.ports.gptnw}:3000" ];
environmentFiles = [ config.age.secrets.gptnw-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.gptnw}";
};
age.secrets.gptnw-keys = {
file = ../../../secrets/gptnw-keys.age;
owner = "root";
group = "root";
};
}

View file

@ -22,7 +22,7 @@ in {
searx = mkStringOption "8007";
qbittorrent = mkStringOption "8008";
actual = mkStringOption "8009";
big-agi = mkStringOption "8010";
gptnw = mkStringOption "8010";
jellyfin = mkStringOption "8096";
sonarr = mkStringOption "8989";
jackett = mkStringOption "9117";

Binary file not shown.

BIN
secrets/gptnw-keys.age Normal file

Binary file not shown.

View file

@ -11,7 +11,7 @@ let
all-hosts = desktops ++ servers;
in {
"big-agi-keys.age".publicKeys = all-hosts;
"cloudflare-creds.age".publicKeys = all-hosts;
"gptnw-keys.age".publicKeys = all-hosts;
"paperless-pass.age".publicKeys = all-hosts;
}