- 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>
11 lines
320 B
Bash
Executable File
11 lines
320 B
Bash
Executable File
#!/bin/sh
|
|
|
|
/app/tailscaled --state=/var/lib/tailscale/tailscaled.state --socket=/var/run/tailscale/tailscaled.sock &
|
|
/app/tailscale up --authkey=${TAILSCALE_AUTHKEY} --hostname=reverseproxy
|
|
|
|
# Start GoAccess real-time dashboard
|
|
/app/goaccess.sh &
|
|
|
|
# Start nginx
|
|
/usr/sbin/nginx -c /etc/nginx/nginx.conf -g 'daemon off;'
|