You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor Docker Compose and README for clarity: remove healthcheck from Docker Compose, update environment variable instructions, and streamline API key and tailnet configuration details. Remove Settings page from frontend for improved user experience.
- Protocol and port usage analysis (TCP, UDP, ICMP)
16
-
- Device activity monitoring across your tailnet
17
-
- Historical data visualization with customizable time ranges
18
-
19
-
**Advanced Filtering**
20
-
- Flexible time range selection (5min, 1hour, 24hours, custom)
21
-
- Protocol-based filtering (TCP, UDP, ICMP)
22
-
- Traffic type filtering (virtual, subnet, physical)
23
-
- IP category filtering (Tailscale, private, public)
24
-
- Bandwidth and connection threshold filtering
25
-
26
-
**Device Management**
27
-
- Real-time device status monitoring (online/offline)
28
-
- Detailed device information and metadata
29
-
- Operating system detection and iconography
30
-
- Tag-based organization and filtering
31
-
32
-
**Modern Tech Stack**
33
-
- Go (Gin) backend for high-performance API serving
34
-
- React 18 with TypeScript for type safety
35
-
- Vite for lightning-fast frontend development
36
-
- Tailwind CSS for responsive design
37
-
- D3.js for powerful network visualization
38
-
- SWR for efficient data fetching and caching
39
5
40
6
## Quick Start
41
7
> **Important:** TSFlow requires the **Tailscale Network Flow Logs** feature. This is available on **Premium** and **Enterprise** plans and must be enabled in your Tailscale admin console. The application will not show any flow data otherwise.
42
8
43
-
### Prerequisites
44
-
- Tailscale API key with appropriate permissions
45
-
- Network Flow Logs enabled in admin console
46
-
- Docker
47
-
48
9
### Run with Docker
49
10
50
11
The fastest way to get started using pre-built images:
@@ -54,48 +15,45 @@ docker run -d \
54
15
--name tsflow \
55
16
-p 8080:8080 \
56
17
-e TAILSCALE_API_KEY=your-api-key \
57
-
-e TAILSCALE_TAILNET=your-tailnet \
18
+
-e TAILSCALE_TAILNET=your-organization \
58
19
-e ENVIRONMENT=production \
59
20
--restart unless-stopped \
60
21
ghcr.io/rajsinghtech/tsflow:latest
61
22
```
62
23
63
-
## Architecture Overview
24
+
Navigate to `http://localhost:8080` to access the dashboard.
64
25
65
-
TSFlow uses a **Go backend + React frontend** architecture for optimal performance and security:
Navigate to `http://localhost:8080` to access the dashboard.
30
+
1. Go to the [Logs tab](https://login.tailscale.com/admin/logs) in your Tailscale Admin Console and ensure that Network Flow Logs are **enabled**.
31
+
2. Go to the [API keys page](https://login.tailscale.com/admin/settings/keys) and create a new API key. **Note**: This requires a **Premium** or **Enterprise** plan.
32
+
3. Use this API key in your deployment configuration.
76
33
77
-
**Available image tags:**
78
-
-`latest` - Latest stable release from main branch
79
-
-`<version>` - Tagged releases (e.g., `v1.0.0`)
80
-
-`<commit-sha>` - Specific commit builds
34
+
### Finding Your Tailscale Credentials
81
35
82
-
## Deployment Options
36
+
#### API Key
37
+
1. Go to the [API keys page](https://login.tailscale.com/admin/settings/keys) in your Tailscale Admin Console
38
+
2. Create a new API key with device read permissions
39
+
3. Copy the generated API key (starts with `tskey-api-`)
83
40
84
-
### Using Docker Compose
41
+
#### Organization Name
42
+
1. Go to the [Settings page](https://login.tailscale.com/admin/settings/general) in your Tailscale Admin Console
43
+
2. Your organization name is displayed in the Organization section (used by the Tailscale API)
44
+
3. Use this exact organization name for the `TAILSCALE_TAILNET` variable
85
45
86
-
For more complex setups or persistent configuration:
46
+
### Environment Variables
87
47
88
-
```bash
89
-
# Create environment file
90
-
cp env.example .env
91
-
# Edit .env with your Tailscale credentials
48
+
| Variable | Description | Required | Default |
49
+
|----------|-------------|----------|---------|
50
+
|`TAILSCALE_API_KEY`| Your Tailscale API key | Yes | - |
51
+
|`TAILSCALE_TAILNET`| Your organization name | Yes | - |
0 commit comments