deployment_files

This commit is contained in:
2026-09-17 07:14:32 +00:00
parent 941bbb2330
commit f154d5d716
10 changed files with 833 additions and 9 deletions
+46
View File
@@ -0,0 +1,46 @@
[supervisord]
nodaemon=true
user=root
logfile=/var/log/supervisor/supervisord.log
pidfile=/var/run/supervisord.pid
; ==========================================
; Spring Boot
; ==========================================
[program:springboot]
command=java -jar /opt/backend/app.jar
directory=/opt/backend
autostart=true
autorestart=true
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
priority=20
; ==========================================
; Nginx (serves APK download + proxies backend)
; ==========================================
[program:nginx]
command=/usr/sbin/nginx -g "daemon off;"
autostart=true
autorestart=true
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
priority=30