WIP: init ozai and ozai-webui services on bekkalokk #41
|
@ -27,6 +27,12 @@
|
||||||
grzegorz.inputs.nixpkgs.follows = "nixpkgs-unstable";
|
grzegorz.inputs.nixpkgs.follows = "nixpkgs-unstable";
|
||||||
grzegorz-clients.url = "github:Programvareverkstedet/grzegorz-clients";
|
grzegorz-clients.url = "github:Programvareverkstedet/grzegorz-clients";
|
||||||
grzegorz-clients.inputs.nixpkgs.follows = "nixpkgs";
|
grzegorz-clients.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
||||||
|
ozai.url = "git+https://git.pvv.ntnu.no/Projects/ozai.git";
|
||||||
|
ozai.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
ozai-webui.url = "git+https://git.pvv.ntnu.no/adriangl/ozai-webui.git";
|
||||||
|
ozai-webui.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, nixpkgs-unstable, pvv-nettsiden, sops-nix, disko, ... }@inputs:
|
outputs = { self, nixpkgs, nixpkgs-unstable, pvv-nettsiden, sops-nix, disko, ... }@inputs:
|
||||||
|
|
|
@ -0,0 +1,25 @@
|
||||||
|
{ config, pkgs, lib, ... }:
|
||||||
|
let
|
||||||
|
domain = "azul.pvv.ntnu.no";
|
||||||
|
in
|
||||||
|
{
|
||||||
|
|
||||||
|
services.ozai.enable = true;
|
||||||
|
services.ozai.host = "0.0.0.0";
|
||||||
|
services.ozai.port = 8000;
|
||||||
|
|
||||||
|
services.ozai-webui = {
|
||||||
|
enable = true;
|
||||||
|
port = 8085;
|
||||||
|
host = "127.0.0.1";
|
||||||
|
};
|
||||||
|
|
||||||
|
services.nginx.virtualHosts."${domain}" = {
|
||||||
|
forceSSL = true;
|
||||||
|
enableACME = true;
|
||||||
|
locations."/" = {
|
||||||
|
proxyWebsockets = true;
|
||||||
|
proxyPass = "http://${config.services.ozai.host}:${config.services.ozai.port}";
|
||||||
|
|||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue
the
port
needs to be sent throughtoString
. Also, is this really supposed to be the host and port ofservices.ozai
, or did you mean to writeservices.ozai-webui
?thnx. Absoluteley this.