bajar memoria de tailscaled

This commit is contained in:
2025-10-06 16:27:01 -03:00
parent 145d045bab
commit a3ba08c2e9
3 changed files with 16 additions and 0 deletions

View File

@@ -17,6 +17,14 @@ The solution uses a multi-stage Docker build:
- **Stage 2 (tailscale)**: Downloads and extracts Tailscale binaries
- **Stage 3 (production)**: Final Alpine image with nginx, Tailscale, and GoAccess
### Memory Optimization
Configured for 256MB Fly.io containers:
- **Go GC settings**: `GOGC=10` and `GOMEMLIMIT=100MiB` for aggressive Tailscale memory management
- **GoAccess**: Static HTML generation (60-second intervals) instead of real-time WebSocket
- **Nginx**: Reduced connection timeouts and buffer sizes
- **Package optimization**: Minimal Alpine packages only
### Key Components
- **nginx.conf**: Main configuration with rate limiting zones, server blocks for each subdomain, and GoAccess metrics endpoint