deployment_files
This commit is contained in:
Executable
+46
@@ -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
|
||||
Reference in New Issue
Block a user