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

@ -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";
};
}