big-agi -> gptnw
This commit is contained in:
parent
f1df340f9b
commit
4b91663bb8
6 changed files with 25 additions and 25 deletions
|
|
@ -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";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
23
hosts/servers/alexandria/gptnw.nix
Normal file
23
hosts/servers/alexandria/gptnw.nix
Normal 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";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -22,7 +22,7 @@ in {
|
||||||
searx = mkStringOption "8007";
|
searx = mkStringOption "8007";
|
||||||
qbittorrent = mkStringOption "8008";
|
qbittorrent = mkStringOption "8008";
|
||||||
actual = mkStringOption "8009";
|
actual = mkStringOption "8009";
|
||||||
big-agi = mkStringOption "8010";
|
gptnw = mkStringOption "8010";
|
||||||
jellyfin = mkStringOption "8096";
|
jellyfin = mkStringOption "8096";
|
||||||
sonarr = mkStringOption "8989";
|
sonarr = mkStringOption "8989";
|
||||||
jackett = mkStringOption "9117";
|
jackett = mkStringOption "9117";
|
||||||
|
|
|
||||||
Binary file not shown.
BIN
secrets/gptnw-keys.age
Normal file
BIN
secrets/gptnw-keys.age
Normal file
Binary file not shown.
|
|
@ -11,7 +11,7 @@ let
|
||||||
|
|
||||||
all-hosts = desktops ++ servers;
|
all-hosts = desktops ++ servers;
|
||||||
in {
|
in {
|
||||||
"big-agi-keys.age".publicKeys = all-hosts;
|
|
||||||
"cloudflare-creds.age".publicKeys = all-hosts;
|
"cloudflare-creds.age".publicKeys = all-hosts;
|
||||||
|
"gptnw-keys.age".publicKeys = all-hosts;
|
||||||
"paperless-pass.age".publicKeys = all-hosts;
|
"paperless-pass.age".publicKeys = all-hosts;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue