Add custom nginx.conf to fix log file issues
This commit is contained in:
@ -19,6 +19,7 @@ COPY --from=keila-build /opt/app /tmp/keila-release
|
|||||||
# Copy configuration files
|
# Copy configuration files
|
||||||
COPY start.sh /app/code/start.sh
|
COPY start.sh /app/code/start.sh
|
||||||
COPY nginx.conf /etc/nginx/sites-available/default
|
COPY nginx.conf /etc/nginx/sites-available/default
|
||||||
|
COPY nginx_main.conf /etc/nginx/nginx.conf
|
||||||
|
|
||||||
# Set permissions
|
# Set permissions
|
||||||
RUN chmod +x /app/code/start.sh \
|
RUN chmod +x /app/code/start.sh \
|
||||||
|
29
nginx_main.conf
Normal file
29
nginx_main.conf
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
user cloudron;
|
||||||
|
worker_processes auto;
|
||||||
|
pid /tmp/nginx.pid;
|
||||||
|
error_log /dev/stderr;
|
||||||
|
|
||||||
|
events {
|
||||||
|
worker_connections 1024;
|
||||||
|
}
|
||||||
|
|
||||||
|
http {
|
||||||
|
include /etc/nginx/mime.types;
|
||||||
|
default_type application/octet-stream;
|
||||||
|
|
||||||
|
access_log /dev/stdout;
|
||||||
|
|
||||||
|
sendfile on;
|
||||||
|
tcp_nopush on;
|
||||||
|
tcp_nodelay on;
|
||||||
|
keepalive_timeout 65;
|
||||||
|
types_hash_max_size 2048;
|
||||||
|
|
||||||
|
client_body_temp_path /tmp/nginx/body;
|
||||||
|
fastcgi_temp_path /tmp/nginx/fastcgi;
|
||||||
|
proxy_temp_path /tmp/nginx/proxy;
|
||||||
|
scgi_temp_path /tmp/nginx/scgi;
|
||||||
|
uwsgi_temp_path /tmp/nginx/uwsgi;
|
||||||
|
|
||||||
|
include /etc/nginx/sites-available/default;
|
||||||
|
}
|
Reference in New Issue
Block a user