nix-dotfiles/services/ozai.nix

23 lines
581 B
Nix
Raw Normal View History

2024-05-29 19:33:24 +02:00
{ config, pkgs, lib, ... }:
{
services.ozai.enable = true;
services.ozai.host = "0.0.0.0";
services.ozai.port = 8000;
services.ozai-webui = {
enable = true;
port = 8085;
host = "0.0.0.0";
};
services.nginx.virtualHosts."ozai.${config.networking.hostName}.${config.networking.domain}" = {
forceSSL = true;
#useACMEHost = config.networking.domain; #not sure if this will work, unless
locations."/" = {
proxyWebsockets = true;
proxyPass = "http://${config.services.ozai.host}:${config.services.ozai.port}";
};
};
}