From f357c6c8d4d4d22ce00cca23c28bc9465a79eb9a Mon Sep 17 00:00:00 2001 From: Pizza <33816021+PizzaCow@users.noreply.github.com> Date: Wed, 1 Apr 2026 16:00:12 -0600 Subject: [PATCH] feat: initial TailScan implementation --- .env.example | 31 ++++++++++--------------------- 1 file changed, 10 insertions(+), 21 deletions(-) diff --git a/.env.example b/.env.example index 8296e66..0f8b3cc 100644 --- a/.env.example +++ b/.env.example @@ -1,25 +1,14 @@ -# TailScan Configuration -# Copy this file to .env and fill in your values. - -# ── Tailscale OAuth credentials ── +# Tailscale OAuth credentials # Create at: https://login.tailscale.com/admin/settings/oauth -# Scopes needed: openid, profile, email, devices:read -# Redirect URI: http://:8080/auth/callback +# Scopes needed: devices:read +TAILSCALE_CLIENT_ID=your_client_id_here +TAILSCALE_CLIENT_SECRET=your_client_secret_here -TS_CLIENT_ID=your_oauth_client_id -TS_CLIENT_SECRET=your_oauth_client_secret +# Redirect URI — set this to http://:8080/auth/callback +TAILSCALE_REDIRECT_URI=http://100.x.x.x:8080/auth/callback -# ── Your tailnet name ── -# Find at: https://login.tailscale.com/admin/machines (top of page) -# Use "-" to auto-detect the default tailnet for the OAuth client -TS_TAILNET=- +# Random secret key for session signing — generate with: python3 -c "import secrets; print(secrets.token_hex(32))" +SECRET_KEY=change_me_to_a_random_secret -# ── Base URL ── -# Set to your Tailscale machine IP and port -# Example: http://100.64.0.1:8080 -BASE_URL=http://100.64.0.1:8080 - -# ── Server binding ── -# Leave as 0.0.0.0 to bind all interfaces (Tailscale will filter access) -HOST=0.0.0.0 -PORT=8080 +# Tailnet name (e.g. "example.com" or "user@gmail.com" — found in Tailscale admin) +TAILNET=your-tailnet-name