mirror of
https://github.com/jhd3197/ServerKit.git
synced 2026-12-06 15:12:30 +09:00
Self-hosted tunneled reverse proxy: a service on a NAT'd host (e.g. a home Jellyfin box) gets a public HTTPS hostname with no port-forwarding, by pairing two agents over WireGuard. Implements Phases 0-3 of docs/REMOTE_ACCESS_ROADMAP.md. Agent (Go): - new internal/wireguard package: Manager interface + kernel backend (wg/ip) and a userspace netstack backend (wireguard-go + gVisor) so Windows/macOS peers need no driver/admin; in-process keygen returns only the public key (private keys never leave the host) - wireguard:keygen/interface/peer/status/forward/unforward + firewall :allow_port/:deny_port commands; wireguard + firewall capability probes - TCP forwarder (tnet.ListenTCP / net.Listen -> dial localhost) carries traffic to the real service behind a netstack peer Backend (Python): - Tunnel + ExposedService models; tunnel_netutil (subnet allocator, health); tunnel_broker_service (keygen->up->peer->verify, firewall open, reconcile-on- reconnect); tunnel_publish_service (forward -> nginx -> DNS -> auth -> cert) - nginx remote-upstream vhost (WebSocket + proxy_buffering off) - /api/v1/tunnels CRUD + /<id>/services publish/unpublish - panel-authoritative reconcile hooked into the agent gateway on reconnect Frontend (React): - Remote Access page (tunnels + exposed services, status, teardown) and an "Expose a Local Service" wizard; new services/api/tunnels.js Verified: go build (win/linux) + vet + go tests (forwarder + no-leak parsers); py_compile + pytest (netutil, reconcile, nginx template); create_app boot; eslint + npm run build. Live multi-host run pending. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
133 lines
2.5 KiB
Plaintext
133 lines
2.5 KiB
Plaintext
# --- ServerKit Consolidated .gitignore ---
|
|
|
|
# Node / Frontend
|
|
/frontend/node_modules/
|
|
/frontend/dist/
|
|
/frontend/npm-debug.log*
|
|
/frontend/yarn-debug.log*
|
|
/frontend/yarn-error.log*
|
|
/frontend/.eslintcache
|
|
/frontend/.stylelintcache
|
|
/frontend/coverage/
|
|
/frontend/.next/
|
|
/frontend/out/
|
|
/frontend/build/
|
|
|
|
# Python / Backend
|
|
/backend/venv/
|
|
/backend/instance/
|
|
/backend/__pycache__/
|
|
/backend/.pytest_cache/
|
|
/backend/.coverage
|
|
/backend/htmlcov/
|
|
/backend/.mypy_cache/
|
|
/backend/.tox/
|
|
/backend/*.pyc
|
|
/backend/*.pyo
|
|
/backend/*.pyd
|
|
/backend/.env
|
|
/backend/.venv
|
|
/backend/.venv-wsl/
|
|
/backend/pip-log.txt
|
|
/backend/pip-delete-this-directory.txt
|
|
/backend/dev-data/
|
|
/venv/
|
|
|
|
# Go / Agent
|
|
/agent/serverkit-agent
|
|
/agent/serverkit-agent.exe
|
|
/agent/dist/
|
|
/agent/vendor/
|
|
/agent/*.test
|
|
/agent/*.out
|
|
/agent/bin/
|
|
/dist/
|
|
# Release artifacts built by .github/workflows/agent-release.yml — these are
|
|
# published to GitHub Releases, not committed. (NOTE: the *.syso resource
|
|
# objects under agent/cmd/agent/ are build INPUTS, embedded by the Go
|
|
# toolchain at build time, and are intentionally tracked.)
|
|
/packages/
|
|
*.msi
|
|
*.wixpdb
|
|
|
|
# Environment / Secrets
|
|
.env
|
|
.env.local
|
|
.env.development.local
|
|
.env.test.local
|
|
.env.production.local
|
|
*.key
|
|
*.pem
|
|
*.crt
|
|
*.csr
|
|
/backend/.env
|
|
/frontend/.env.local
|
|
/frontend/.env.development.local
|
|
|
|
# Docker
|
|
.docker-compose.untracked.yml
|
|
docker-compose.override.yml
|
|
|
|
# OS / IDE
|
|
.DS_Store
|
|
.DS_Store?
|
|
._*
|
|
.Spotlight-V100
|
|
.Trashes
|
|
ehthumbs.db
|
|
Thumbs.db
|
|
.idea/
|
|
.vscode/
|
|
*.swp
|
|
*.swo
|
|
*~
|
|
*.sublime-project
|
|
*.sublime-workspace
|
|
|
|
# Project Specific
|
|
.planning_old/
|
|
.mcp.json
|
|
new_templates/
|
|
/.marketing/
|
|
/template-icons/
|
|
/.pr/
|
|
/.reviews/
|
|
/.claude/settings.local.json
|
|
/serverkit.db
|
|
/backend/instance/serverkit.db
|
|
|
|
# Logs & Temp
|
|
*.log
|
|
*.tmp
|
|
*.temp
|
|
/logs/
|
|
/tmp/
|
|
nul
|
|
SECURITY_AUDIT.md
|
|
APP_IMPROVEMENTS.md
|
|
UI_REPORT.md
|
|
# Scratch screenshots dropped at the repo root. Real image assets live under
|
|
# frontend/ or are force-included below (agent/internal/setupui/*).
|
|
*.png
|
|
*.jpeg
|
|
*.jpg
|
|
|
|
# MSI / build artifacts that should not be committed.
|
|
/agent/packaging/msi/output/
|
|
/agent/packaging/msi/*.wixpdb
|
|
|
|
# Brand assets that the agent embeds at build time are generated by
|
|
# agent/packaging/icons/generate_icons.py from the SVG, but must be checked
|
|
# in so CI builds don't have to install cairo/Pillow.
|
|
!agent/internal/setupui/serverkit.ico
|
|
!agent/internal/setupui/serverkit_header.png
|
|
docs/PLAN_AGENT_FLEET.md
|
|
/docs/plans
|
|
/.agents
|
|
/.extension-platform-plan/
|
|
/.claude
|
|
/.github/skills
|
|
/.playwright-mcp
|
|
docs/UI_CONSISTENCY_AUDIT.md
|
|
docs/REMOTE_ACCESS_ROADMAP.md
|