personal activity index (bluesky, leaflet, substack) pai.desertthunder.dev
rss bluesky
at main 30 lines 962 B view raw
1# nginx configuration for Personal Activity Index 2# This file provides a basic reverse proxy setup for pai serve 3 4server { 5 listen 80; 6 server_name localhost; 7 8 # For a custom domain, replace localhost with your domain and add SSL configuration: 9 # listen 443 ssl http2; 10 # ssl_certificate /path/to/cert.pem; 11 # ssl_certificate_key /path/to/key.pem; 12 13 location / { 14 proxy_pass http://127.0.0.1:8080; 15 proxy_set_header Host $host; 16 proxy_set_header X-Real-IP $remote_addr; 17 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 18 proxy_set_header X-Forwarded-Proto $scheme; 19 20 # Optional: Add response headers 21 add_header X-Frame-Options "SAMEORIGIN" always; 22 add_header X-Content-Type-Options "nosniff" always; 23 } 24 25 # Optional: Health check endpoint for load balancers 26 location /healthz { 27 proxy_pass http://127.0.0.1:8080/status; 28 access_log off; 29 } 30}