From 273aff206c969a8921b16ffd862b0ed373e47088 Mon Sep 17 00:00:00 2001 From: Andreas Dueren Date: Fri, 20 Jun 2025 10:13:25 -0600 Subject: [PATCH] Add custom nginx.conf to fix log file issues --- Dockerfile | 1 + nginx_main.conf | 29 +++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 nginx_main.conf diff --git a/Dockerfile b/Dockerfile index 606a9e2..5549b70 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,6 +19,7 @@ COPY --from=keila-build /opt/app /tmp/keila-release # Copy configuration files COPY start.sh /app/code/start.sh COPY nginx.conf /etc/nginx/sites-available/default +COPY nginx_main.conf /etc/nginx/nginx.conf # Set permissions RUN chmod +x /app/code/start.sh \ diff --git a/nginx_main.conf b/nginx_main.conf new file mode 100644 index 0000000..30a0bf4 --- /dev/null +++ b/nginx_main.conf @@ -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; +} \ No newline at end of file