Files
personal-servers/reverse_proxy
Roberto Alsina 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
..
2024-06-26 11:11:00 -03:00
2024-06-26 11:11:00 -03:00
2024-06-26 11:11:00 -03:00
2024-06-26 11:11:00 -03:00

Reverse Proxy setup

How I put my very own personal servers online, for free.

This sets up a reverse proxy using nginx on a VM in fly.io using tailscale to access the internal servers.

Details at the blog post

When adding a new hostname, remember to create a cert for it using flyctl certs create hostname

Every 90 days the tailscale auth key will expire and you need to set a new one as a secret.