Fix NGINX config and Blinko working directory
- Move temp path directives into http block - Set working directory to /app/data for Blinko - Add BLINKO_DATA_PATH environment variable
This commit is contained in:
10
nginx.conf
10
nginx.conf
@@ -3,6 +3,11 @@ worker_processes auto;
|
|||||||
pid /run/nginx.pid;
|
pid /run/nginx.pid;
|
||||||
error_log stderr;
|
error_log stderr;
|
||||||
|
|
||||||
|
events {
|
||||||
|
worker_connections 1024;
|
||||||
|
}
|
||||||
|
|
||||||
|
http {
|
||||||
# Use /run for temp directories (writable in Cloudron)
|
# Use /run for temp directories (writable in Cloudron)
|
||||||
client_body_temp_path /run/nginx-client-body;
|
client_body_temp_path /run/nginx-client-body;
|
||||||
proxy_temp_path /run/nginx-proxy;
|
proxy_temp_path /run/nginx-proxy;
|
||||||
@@ -10,11 +15,6 @@ fastcgi_temp_path /run/nginx-fastcgi;
|
|||||||
uwsgi_temp_path /run/nginx-uwsgi;
|
uwsgi_temp_path /run/nginx-uwsgi;
|
||||||
scgi_temp_path /run/nginx-scgi;
|
scgi_temp_path /run/nginx-scgi;
|
||||||
|
|
||||||
events {
|
|
||||||
worker_connections 1024;
|
|
||||||
}
|
|
||||||
|
|
||||||
http {
|
|
||||||
include /etc/nginx/mime.types;
|
include /etc/nginx/mime.types;
|
||||||
default_type application/octet-stream;
|
default_type application/octet-stream;
|
||||||
|
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ priority=10
|
|||||||
|
|
||||||
[program:blinko]
|
[program:blinko]
|
||||||
command=/usr/local/bin/dumb-init node /app/code/dist/index.js
|
command=/usr/local/bin/dumb-init node /app/code/dist/index.js
|
||||||
directory=/app/code
|
directory=/app/data
|
||||||
user=cloudron
|
user=cloudron
|
||||||
autostart=true
|
autostart=true
|
||||||
autorestart=true
|
autorestart=true
|
||||||
@@ -35,4 +35,4 @@ stdout_logfile_maxbytes=0
|
|||||||
stderr_logfile=/dev/stderr
|
stderr_logfile=/dev/stderr
|
||||||
stderr_logfile_maxbytes=0
|
stderr_logfile_maxbytes=0
|
||||||
priority=20
|
priority=20
|
||||||
environment=NODE_ENV="production",HOME="/app/data"
|
environment=NODE_ENV="production",HOME="/app/data",BLINKO_DATA_PATH="/app/data/.blinko"
|
||||||
|
|||||||
Reference in New Issue
Block a user