feat: jetzt reichts

This commit is contained in:
s-prechtl 2025-11-09 16:40:12 +01:00
parent f865ece33b
commit 55aa108d6b

View file

@ -1,8 +1,8 @@
{config, ...}: { {...}: {
services.open-webui = { services.open-webui = {
enable = true; enable = true;
openFirewall = true; openFirewall = true;
host = "chattn.sprechtl.me"; host = "0.0.0.0";
}; };
services.ollama = { services.ollama = {
@ -13,18 +13,12 @@
services.nginx = { services.nginx = {
enable = true; enable = true;
virtualHosts.${config.services.open-webui.host} = { virtualHosts."chattn.sprechtl.me" = {
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;
locations."/" = { locations."/" = {
proxyPass = "http://127.0.0.1:8080"; proxyPass = "http://127.0.0.1:8080";
proxyWebsockets = true; proxyWebsockets = true;
extraConfig = ''
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
'';
}; };
}; };
}; };