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:
14
nginx.conf
14
nginx.conf
@@ -3,18 +3,18 @@ worker_processes auto;
|
||||
pid /run/nginx.pid;
|
||||
error_log stderr;
|
||||
|
||||
# Use /run for temp directories (writable in Cloudron)
|
||||
client_body_temp_path /run/nginx-client-body;
|
||||
proxy_temp_path /run/nginx-proxy;
|
||||
fastcgi_temp_path /run/nginx-fastcgi;
|
||||
uwsgi_temp_path /run/nginx-uwsgi;
|
||||
scgi_temp_path /run/nginx-scgi;
|
||||
|
||||
events {
|
||||
worker_connections 1024;
|
||||
}
|
||||
|
||||
http {
|
||||
# Use /run for temp directories (writable in Cloudron)
|
||||
client_body_temp_path /run/nginx-client-body;
|
||||
proxy_temp_path /run/nginx-proxy;
|
||||
fastcgi_temp_path /run/nginx-fastcgi;
|
||||
uwsgi_temp_path /run/nginx-uwsgi;
|
||||
scgi_temp_path /run/nginx-scgi;
|
||||
|
||||
include /etc/nginx/mime.types;
|
||||
default_type application/octet-stream;
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ priority=10
|
||||
|
||||
[program:blinko]
|
||||
command=/usr/local/bin/dumb-init node /app/code/dist/index.js
|
||||
directory=/app/code
|
||||
directory=/app/data
|
||||
user=cloudron
|
||||
autostart=true
|
||||
autorestart=true
|
||||
@@ -35,4 +35,4 @@ stdout_logfile_maxbytes=0
|
||||
stderr_logfile=/dev/stderr
|
||||
stderr_logfile_maxbytes=0
|
||||
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