WIP! A BB-style forum, on the ATmosphere! We're still working... we'll be back soon when we have something to show off!
node typescript hono htmx atproto
at ae2264073b8be1d0265300304471836cd4be4fed 46 lines 1.2 kB view raw
1# PID file location (writable by non-root user) 2pid /tmp/nginx.pid; 3 4events { 5 worker_connections 1024; 6} 7 8http { 9 include /etc/nginx/mime.types; 10 default_type application/octet-stream; 11 12 # Logging 13 access_log /dev/stdout; 14 error_log /dev/stderr; 15 16 # Client limits 17 client_max_body_size 10M; 18 19 # Proxy timeouts 20 proxy_connect_timeout 60s; 21 proxy_send_timeout 60s; 22 proxy_read_timeout 60s; 23 24 # Main server block 25 server { 26 listen 80; 27 28 # API routes → appview 29 location /api/ { 30 proxy_pass http://localhost:3000; 31 proxy_set_header Host $host; 32 proxy_set_header X-Real-IP $remote_addr; 33 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 34 proxy_set_header X-Forwarded-Proto $scheme; 35 } 36 37 # Web UI → web 38 location / { 39 proxy_pass http://localhost:3001; 40 proxy_set_header Host $host; 41 proxy_set_header X-Real-IP $remote_addr; 42 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 43 proxy_set_header X-Forwarded-Proto $scheme; 44 } 45 } 46}