solargod/deploy/nginx-solargod.conf
monsterrobotparty 637ac5dfbf 🚀 herald: deploy artifacts (prep — not applied) (opus)
serve.py binds loopback, so prod mirrors godstrument.pro: systemd runs serve.py,
nginx reverse-proxies the domain to 127.0.0.1:8147, certbot for TLS. Adds
deploy/{solargod.service, nginx-solargod.conf, deploy.sh, HERALD.md}. BLOCKED on
the user: domain/DNS + VPS access (Part ω.2). Nothing deployed — artifacts only.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-16 13:30:39 +10:00

18 lines
785 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# HERALD — nginx reverse proxy for SOLARGOD. Replace SOLARGOD_DOMAIN, then run
# certbot for TLS once the A record resolves. serve.py handles both static files
# and the /proxy/* JPL endpoints (with its disk cache), so we proxy everything.
server {
listen 80;
server_name SOLARGOD_DOMAIN;
# (optional perf) serve committed static assets straight from disk instead of
# through Python: root /opt/solargod; try_files $uri @app; location @app { ... }
location / {
proxy_pass http://127.0.0.1:8147;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_read_timeout 90s; # first cold Horizons spacecraft fetch can take 25 s
}
}