big-agi -> gptnw
This commit is contained in:
parent
f1df340f9b
commit
4b91663bb8
6 changed files with 25 additions and 25 deletions
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";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue