configure reverse proxy for ai

This commit is contained in:
glenn 2024-07-25 10:20:17 +02:00
parent a68decebc6
commit 2cc3da022c
2 changed files with 55 additions and 26 deletions

22
ai.nix Normal file
View file

@ -0,0 +1,22 @@
{
self,
config,
lib,
pkgs,
...
}: let
domain = "ai.sondell.org";
in {
services.nginx.virtualHosts = {
${domain} = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://localhost:9876/";
proxyWebsockets = true;
};
# Use DNS Challenege.
# acmeRoot = null;
};
};
}