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>
19 lines
660 B
Desktop File
19 lines
660 B
Desktop File
# HERALD — systemd unit for SOLARGOD. serve.py binds 127.0.0.1 only; nginx
|
|
# reverse-proxies the public domain to it (mirror of the godstrument.pro shape).
|
|
# Install: sudo cp deploy/solargod.service /etc/systemd/system/ && sudo systemctl enable --now solargod
|
|
[Unit]
|
|
Description=SOLARGOD orrery — serve.py (static + JPL Horizons/SBDB/CAD proxy + disk cache)
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=www-data
|
|
WorkingDirectory=/opt/solargod
|
|
ExecStart=/usr/bin/python3 /opt/solargod/serve.py 8147
|
|
Restart=on-failure
|
|
RestartSec=3
|
|
# serve.py writes its disk cache under WorkingDirectory/cache — keep it writable.
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|