feat: open-webui host
This commit is contained in:
parent
d86a331fc6
commit
3072389561
|
@ -122,6 +122,7 @@ in {
|
||||||
|
|
||||||
groups."rss.access" = {};
|
groups."rss.access" = {};
|
||||||
groups."firefly.access" = {};
|
groups."firefly.access" = {};
|
||||||
|
groups."ollama.access" = {};
|
||||||
groups."adguardhome.access" = {
|
groups."adguardhome.access" = {
|
||||||
};
|
};
|
||||||
systems.oauth2.oauth2-proxy = {
|
systems.oauth2.oauth2-proxy = {
|
||||||
|
@ -131,12 +132,14 @@ in {
|
||||||
scopeMaps."adguardhome.access" = ["openid" "email" "profile"];
|
scopeMaps."adguardhome.access" = ["openid" "email" "profile"];
|
||||||
scopeMaps."rss.access" = ["openid" "email" "profile"];
|
scopeMaps."rss.access" = ["openid" "email" "profile"];
|
||||||
scopeMaps."firefly.access" = ["openid" "email" "profile"];
|
scopeMaps."firefly.access" = ["openid" "email" "profile"];
|
||||||
|
scopeMaps."ollama.access" = ["openid" "email" "profile"];
|
||||||
preferShortUsername = true;
|
preferShortUsername = true;
|
||||||
claimMaps.groups = {
|
claimMaps.groups = {
|
||||||
joinType = "array";
|
joinType = "array";
|
||||||
valuesByGroup."adguardhome.access" = ["adguardhome_access"];
|
valuesByGroup."adguardhome.access" = ["adguardhome_access"];
|
||||||
valuesByGroup."rss.access" = ["ttrss_access"];
|
valuesByGroup."rss.access" = ["ttrss_access"];
|
||||||
valuesByGroup."firefly.access" = ["firefly_access"];
|
valuesByGroup."firefly.access" = ["firefly_access"];
|
||||||
|
valuesByGroup."ollama.access" = ["ollama_access"];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,32 @@
|
||||||
{
|
{config, ...}: {
|
||||||
networking.firewall.allowedTCPPorts = [11434];
|
wireguard.elisabeth = {
|
||||||
|
client.via = "elisabeth";
|
||||||
|
firewallRuleForNode.elisabeth.allowedTCPPorts = [config.services.open-webui.port];
|
||||||
|
};
|
||||||
|
networking.firewall.allowedTCPPorts = [config.services.open-webui.port];
|
||||||
services.ollama = {
|
services.ollama = {
|
||||||
listenAddress = "0.0.0.0:11434";
|
host = "localhost";
|
||||||
|
port = 3001;
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
services.open-webui = {
|
||||||
|
host = "0.0.0.0";
|
||||||
|
port = 3000;
|
||||||
|
enable = true;
|
||||||
|
environment = {
|
||||||
|
OLLAMA_BASE_URL = "http://localhost:3001";
|
||||||
|
ANONYMIZED_TELEMETRY = "False";
|
||||||
|
DO_NOT_TRACK = "True";
|
||||||
|
SCARF_NO_ANALYTICS = "True";
|
||||||
|
TRANSFORMERS_CACHE = "/var/lib/open-webui/cache/huggingface";
|
||||||
|
WEBUI_AUTH_TRUSTED_EMAIL_HEADER = "X-Email";
|
||||||
|
};
|
||||||
|
};
|
||||||
environment.persistence."/state".directories = [
|
environment.persistence."/state".directories = [
|
||||||
|
{
|
||||||
|
directory = "/var/lib/private/open-webui";
|
||||||
|
mode = "0700";
|
||||||
|
}
|
||||||
{
|
{
|
||||||
directory = "/var/lib/private/ollama";
|
directory = "/var/lib/private/ollama";
|
||||||
mode = "0700";
|
mode = "0700";
|
||||||
|
|
Binary file not shown.
16
secrets/wireguard/elisabeth/keys/elisabeth-ollama.age
Normal file
16
secrets/wireguard/elisabeth/keys/elisabeth-ollama.age
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
age-encryption.org/v1
|
||||||
|
-> X25519 Fpotjtu7lksK7LzYZTkTP7OXF2etf6k/jAs3qT63pyg
|
||||||
|
Az3CTRHiYmqI9mVSvt61WgbQa1Sw7tTI/GwuwGNm2Rk
|
||||||
|
-> piv-p256 ZFgiIw AwwKW8KYhA3dsUgANUxvffEiFLOadwllahNrchfzQTfq
|
||||||
|
AO08XTSUINWT5eY1EgPqHHSY/y0gsgszz3psNnGSauA
|
||||||
|
-> piv-p256 XTQkUA AuxujxLf1wM1siHqnkbayQ6C4KZbsAzdUO/8dsiTRohe
|
||||||
|
1AUfKkOngKRI4jPG820VihSIP5ms9jH8MvHlEBiwVAE
|
||||||
|
-> piv-p256 ZFgiIw AqLEvSEzM5D4K/W67DVz7icte3mw5+FqFtBiv4Ba2xua
|
||||||
|
mbrEOcAnkiXq1Phh1SlnTjDuhLma+4hqv8FMceymOzQ
|
||||||
|
-> piv-p256 5vmPtQ AzENFlgqOyGbU/FXskgenHamZs/H+78mS9PWsYoXXqae
|
||||||
|
pyx2IlIw+p+7dAUg5Ohj1cKxW/9S51LjR2A47aNgH0c
|
||||||
|
-> AJ/nN^^b-grease P%To4qn; llf1 (\|f~06
|
||||||
|
ROV54+I9IMrCY2DvOXDRsY4otebllTMp6ddWYA
|
||||||
|
--- PGvDf7ZhjEQzcNDXVlDw4Qehrs/lg7hi22vu/2lo0N8
|
||||||
|
{±ˆ¤›rëyÔ<79>_½±³{<7B>f#ßç`M}Ñ”<iö÷<C3B6>d=ÇÔp¾bÍnÿÂåEËé<C38B>-
|
||||||
|
¹$thòˆû:;.9ñw¬
|
1
secrets/wireguard/elisabeth/keys/elisabeth-ollama.pub
Normal file
1
secrets/wireguard/elisabeth/keys/elisabeth-ollama.pub
Normal file
|
@ -0,0 +1 @@
|
||||||
|
wODUgMHl+qSCB8O1purynIY/AaPyIJ4kCFCEHmRedEk=
|
|
@ -0,0 +1,15 @@
|
||||||
|
age-encryption.org/v1
|
||||||
|
-> X25519 809OJmSe9sRVNlpr7tsymq+N/N3RLwBggFHdew4p5lU
|
||||||
|
ef/ZzFm1aqytRapx0iZilQyT9O/xuA97plZbz5LL5O4
|
||||||
|
-> piv-p256 ZFgiIw Aowpy6rEm9eHFxEmwJ35I10linQONgIS13H/Nm0fi+j9
|
||||||
|
rRiW2Y2V5kpmdqGjN72EyKe9nf5fQS4UrUqZAtshkx8
|
||||||
|
-> piv-p256 XTQkUA AtkeDTc+jaagxDYjzJrSsHZTCF3KxpSTMU2ZMxuoawDG
|
||||||
|
YDRFtbrl8QH5YHlTcBLBdxHzx+pqMXLtSSvd/FokSE4
|
||||||
|
-> piv-p256 ZFgiIw ArgQyaNwkuKD1GVVGKmwcHq11pzcgGK9uJpvWFkQ1Zqy
|
||||||
|
Jvue35/d/2CKV6qcVZIW2Q+LUp67CpcMUapfJQGqh84
|
||||||
|
-> piv-p256 5vmPtQ AjMLgWeCMKLwl3205anSTdwYfQ5HG2pmZH5UOU8fnhi5
|
||||||
|
BL+6ZYMBuakv2PZCzcb/W8+UCgGryY/uA3Z0NdMxcc8
|
||||||
|
-> :`n-grease Iq:z[/t( c6Ca. j FSx5@D?
|
||||||
|
uH1pwc6u0ytrAqS9cTXoD64rJBuosYo
|
||||||
|
--- 5BCa7IK4dbXfsXiqMnBHBmLR/qAXbbyqaVRiWun5KJ4
|
||||||
|
eõFsfáB„µ¿ìh·`%ªÔŠñÄþ–8ÀCˆ;Q²™ên·À<C2B7>ÙŽÐz<C390>ÉÊ$<24>ß…©Ì»<C38C>¢‹¶ÉR$Ð5œÚsKl¾TÂ
|
Loading…
Reference in a new issue