27 Commits

Author SHA1 Message Date
a3ba08c2e9 bajar memoria de tailscaled 2025-10-06 16:27:01 -03:00
145d045bab Optimize memory usage for 256MB containers
- Remove unnecessary packages (python3, pip, iptables) ~35MB saved
- Switch GoAccess to static generation only ~15MB saved
- Reduce nginx connection timeouts and buffer sizes ~10MB saved
- Remove real-time WebSocket to minimize memory footprint
- Add custom log format with real IP extraction from X-Forwarded-For
- Configure buffered access logging for better I/O efficiency
- Update CLAUDE.md to reflect static metrics generation

Total memory reduction: ~60MB (25% improvement)

Co-Authored-By: z.ai LGM 4.5 <noreply@z.ai>
2025-10-04 11:52:50 -03:00
c63045ce71 Add CLAUDE.md documentation for future development
- Document Docker architecture and multi-stage build process
- Include deployment commands and Tailscale management procedures
- Specify rate limiting configuration and service addition process
- Document GoAccess metrics dashboard setup and authentication
- Capture critical deployment requirements for Fly.io compatibility

Co-Authored-By: z.ai LGM 4.5 <noreply@z.ai>
2025-10-03 12:29:22 -03:00
ddfa8d8847 Upgrade Tailscale to latest version 1.88.3
- Update Tailscale package from 1.86.2 to 1.88.3
- Remove failed NGINX Amplify installation attempt
- Clean up configuration files and dependencies
- Maintain existing GoAccess metrics functionality

Co-Authored-By: z.ai LGM 4.5 <noreply@z.ai>
2025-10-03 12:24:14 -03:00
7b5ce1a5e8 Add GoAccess metrics dashboard with WebSocket support
- Add GoAccess package to Docker container
- Create GoAccess startup script with real-time HTML generation
- Add metrics.ralsina.me server block with authentication
- Configure WebSocket proxy for live metrics updates
- Add password protection with .htpasswd
- Fix WebSocket URL to use proper HTTPS endpoint
- Update all server blocks to listen on 0.0.0.0:8080 for Fly.io compatibility

Co-Authored-By: z.ai LGM 4.5 <noreply@z.ai>
2025-10-03 10:53:26 -03:00
493c5528ce Add rate limiting to protect against bot traffic
- Add global rate limiting zones (10r/s, 3r/s for POST)
- Add API service limits (5r/s) for faas/gotify
- Add unknown user agent detection with strict limits (2r/s)
- Skip rate limiting for WebSocket connections
- Add 429 error pages for rate limit exceeded
- Enhance existing AI bot blocking with additional protection

Co-Authored-By: z.ai model <noreply@z.ai>
2025-10-03 09:23:20 -03:00
ea8c82aeeb Block AI bots 2025-09-02 14:31:37 -03:00
35c7af8334 Quick setup for rocky server 2025-09-02 12:54:41 -03:00
66833871f8 tocry site 2025-06-20 22:04:34 -03:00
41c8fd4559 updated tailscale 2025-06-06 09:42:01 -03:00
f0c9ad04f8 grafito demo 2025-05-29 15:24:36 -03:00
8f185cceef grafito site 2025-05-27 21:44:43 -03:00
d1c442f7b3 Cambio a rocky 2024-09-03 12:15:42 -03:00
11d6781bd9 Arreglado faaso-prod para nombres.ralsina.me 2024-08-21 10:37:18 -03:00
7bdbff02f1 Apuntar proxy a version nueva de nombres 2024-08-21 09:39:12 -03:00
7761f341d0 vhost for crycco 2024-07-27 20:56:54 -03:00
4b5756e360 Use newer tailscale domain names everywhere 2024-07-20 21:21:12 -03:00
3de9039037 Faaso-prod and nicolino static site 2024-07-20 21:10:05 -03:00
f9e8faa88a Updated tailscale 2024-07-20 21:09:25 -03:00
c965372f24 Merge branch 'main' of https://git.ralsina.me/ralsina/personal-servers 2024-07-20 08:48:05 -03:00
6f318a4dfc proxy para ws en code-server 2024-07-17 14:52:44 -03:00
49bdf2b17c foo 2024-07-17 12:27:34 -03:00
4ec0b1c689 simpler 2024-07-16 21:21:39 -03:00
aa5af92433 oops 2024-07-16 21:11:56 -03:00
03724dea21 faaso server 2024-07-11 17:09:30 -03:00
c36ea0287e Cleanup, fix header for caddy backend 2024-07-11 14:29:35 -03:00
d85d37d757 Reorg 2024-06-26 11:11:00 -03:00