Added nginx for open-webui server
This commit is contained in:
parent
f95d52ec62
commit
e2c7e7c38e
@ -6,7 +6,7 @@
|
||||
(import ./networking.nix {
|
||||
hostname = "mindforge";
|
||||
ip_address = "192.168.100.45";
|
||||
open_ports = [ ];
|
||||
open_ports = [ 80 443 ];
|
||||
inherit lib;
|
||||
})
|
||||
];
|
||||
@ -34,14 +34,27 @@
|
||||
};
|
||||
};
|
||||
|
||||
services.open-webui = {
|
||||
enable = true;
|
||||
host = "0.0.0.0";
|
||||
openFirewall = true;
|
||||
};
|
||||
|
||||
services.ollama = {
|
||||
enable = true;
|
||||
acceleration = "cuda";
|
||||
};
|
||||
|
||||
# NGINX Reverse Proxy Setup
|
||||
services.open-webui.enable = true;
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
virtualHosts = {
|
||||
# Jellyfin
|
||||
"mindforge.randomctf.local" = {
|
||||
extraConfig = ''
|
||||
access_log /var/log/nginx/access.mindforge.log;
|
||||
'';
|
||||
|
||||
locations."/".extraConfig = ''
|
||||
proxy_buffering off;
|
||||
proxy_pass http://localhost:8080/;
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user