feat(jupiter): tailnet-only gitea MCP server
gitea-mcp in HTTP mode on :8093, reachable only over tailscale0. It holds no token; each client sends its own PAT as a Bearer header. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
# gitea-mcp in HTTP mode, tailnet-only at http://jupiter.orbit.sol:8093/mcp.
|
||||
# It holds no token: each client sends its own PAT as `Authorization: Bearer
|
||||
# <token>`, so an unauthenticated request can only see what anonymous gitea
|
||||
# users can.
|
||||
{
|
||||
systemd.services.gitea-mcp = {
|
||||
description = "Gitea MCP server";
|
||||
after = [ "gitea.service" ];
|
||||
wants = [ "gitea.service" ];
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
environment.GITEA_HOST = "http://localhost:3000";
|
||||
serviceConfig = {
|
||||
# Binds every interface (no listen-address flag); tailnet-only because
|
||||
# tailscale0 is trusted and 8093 stays closed on the LAN.
|
||||
ExecStart = "${pkgs.gitea-mcp-server}/bin/gitea-mcp -t http -p 8093";
|
||||
DynamicUser = true;
|
||||
Restart = "on-failure";
|
||||
ProtectSystem = "strict";
|
||||
ProtectHome = true;
|
||||
PrivateTmp = true;
|
||||
NoNewPrivileges = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user