Add custom nginx.conf to fix log file issues

This commit is contained in:
Andreas Dueren
2025-06-20 10:13:25 -06:00
parent 16a51b8c61
commit 273aff206c
2 changed files with 30 additions and 0 deletions

View File

@ -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
View 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;
}