216 backups encrypted on 216: pgBackRest (AES-256) + age-encrypted payment CSVs, pushed write-only to 247 with rrsync; health watches pg_stat_archiver and OFFSITE_SYNC_STATUS_FILE; 216 scripts/configs in ops/server216; plaintext pg216 pipeline removed
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
20
ops/server216/gunicorn-mathapp.service
Normal file
20
ops/server216/gunicorn-mathapp.service
Normal file
@@ -0,0 +1,20 @@
|
||||
[Unit]
|
||||
Description=Gunicorn MathApp (tadrisino API)
|
||||
After=network.target postgresql@16-zareian.service zareian-redis.service
|
||||
Wants=postgresql@16-zareian.service zareian-redis.service
|
||||
|
||||
[Service]
|
||||
User=mathapp
|
||||
Group=www-data
|
||||
WorkingDirectory=/home/mathapp/mathapp-v2
|
||||
EnvironmentFile=/home/mathapp/mathapp-v2/.env
|
||||
# /run/gunicorn بعد از هر ریبوت ساخته میشود (روی ۲۴۹ دستی ساخته شده بود و بعد از ریبوت نبود).
|
||||
RuntimeDirectory=gunicorn
|
||||
RuntimeDirectoryMode=0750
|
||||
ExecStart=/home/mathapp/mathapp-v2/venv/bin/gunicorn --bind unix:/run/gunicorn/mathapp.sock config.wsgi:application
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Alias=zareian-mathapp.service
|
||||
Reference in New Issue
Block a user