configs/tailnet: fix acl for new ollama setup

This commit is contained in:
Aaron Bieber 2024-07-12 07:58:01 -06:00
parent bb6b2f6980
commit 4b3cb69462
No known key found for this signature in database

View File

@ -22,6 +22,7 @@ let
europa = "100.64.26.122"; europa = "100.64.26.122";
il = "100.86.182.99"; il = "100.86.182.99";
tv = "100.118.196.38"; tv = "100.118.196.38";
ollama = "100.121.227.121";
}; };
tagOwners = { tagOwners = {
@ -81,7 +82,7 @@ let
# ollama # ollama
"action" = "accept"; "action" = "accept";
"src" = [ "europa" "h" ]; "src" = [ "europa" "h" ];
"dst" = [ "pwntie:11434" ]; "dst" = [ "ollama:443" ];
"proto" = "tcp"; "proto" = "tcp";
} }
{ {
@ -97,6 +98,12 @@ let
"dst" = [ "tv:8080" "tv:9090" ]; "dst" = [ "tv:8080" "tv:9090" ];
"proto" = "tcp"; "proto" = "tcp";
} }
{
action = "accept";
src = [ "h" ];
dst = [ "ollama:443" ];
proto = "tcp";
}
]; ];
tests = [ tests = [
@ -175,7 +182,7 @@ let
{ {
"src" = "europa"; "src" = "europa";
"proto" = "tcp"; "proto" = "tcp";
"allow" = [ "pwntie:11434" ]; "allow" = [ "ollama:443" ];
} }
{ {
"src" = "tv"; "src" = "tv";
@ -209,6 +216,8 @@ let
if [ "$RESP" != "null" ]; then if [ "$RESP" != "null" ]; then
$PO -title "Failed to update TailNet!" -body "$RESP" $PO -title "Failed to update TailNet!" -body "$RESP"
fi fi
else
$PO -title "Failed to update TailNet!" -body "$RESP"
fi fi
''; '';
jobs = [ jobs = [