mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 11:40:42 +00:00
03f7bade7f
## Description: Update deployment: 1. automatically create and configure CF tunnels and point it to subdomain.domain 2. Send loki logs to remote endpoint 3. create metric-exporter.sh to push prom metrics to remote endpoint 4. update and refactor deployment & env variables ## Please complete the following: - [x] I have added screenshots for all UI updates - [x] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced - [x] I understand that submitting code with bugs that could have been caught through manual testing blocks releases and new features for all contributors ## Please put your Discord username so you can be contacted if a bug or regression is found: <DISCORD USERNAME> --------- Co-authored-by: Evan Pellegrini <evan@Evans-Air.attlocal.net> Co-authored-by: evan <openfrontio@gmail.com>
48 lines
1.1 KiB
Plaintext
48 lines
1.1 KiB
Plaintext
[supervisord]
|
|
nodaemon=true
|
|
user=root
|
|
logfile=/var/log/supervisor/supervisord.log
|
|
pidfile=/var/run/supervisord.pid
|
|
|
|
[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
|
|
|
|
[program:node]
|
|
command=npm run start:server
|
|
directory=/usr/src/app
|
|
autostart=true
|
|
autorestart=true
|
|
user=node
|
|
stdout_logfile=/dev/stdout
|
|
stdout_logfile_maxbytes=0
|
|
stderr_logfile=/dev/stderr
|
|
stderr_logfile_maxbytes=0
|
|
|
|
[program:cloudflared]
|
|
command=cloudflared tunnel run --token %(ENV_CLOUDFLARE_TUNNEL_TOKEN)s
|
|
autostart=true
|
|
autorestart=true
|
|
stdout_logfile=/var/log/cloudflared.log
|
|
stderr_logfile=/var/log/cloudflared-err.log
|
|
|
|
[program:node_exporter]
|
|
command=/usr/local/bin/node_exporter
|
|
autostart=true
|
|
autorestart=true
|
|
stdout_logfile=/var/log/node_exporter.log
|
|
stderr_logfile=/var/log/node_exporter-err.log
|
|
|
|
|
|
[program:metrics_exporter]
|
|
command=/usr/src/app/metric-exporter.sh
|
|
autostart=true
|
|
autorestart=true
|
|
stdout_logfile=/var/log/metrics-exporter.log
|
|
stderr_logfile=/var/log/metrics-exporter-err.log
|