1
0
Fork 0
mirror of synced 2024-09-08 21:51:58 +12:00

Merge pull request #8943 from Budibase/singleimage-nginx-logs

single image nginx logs to stdout
This commit is contained in:
Jonny McCullagh 2022-12-06 13:07:56 +00:00 committed by GitHub
commit bc115f8296
3 changed files with 5 additions and 3 deletions

View file

@ -61,7 +61,8 @@ ADD hosting/single/nginx/nginx.conf /etc/nginx
ADD hosting/single/nginx/nginx-default-site.conf /etc/nginx/sites-enabled/default ADD hosting/single/nginx/nginx-default-site.conf /etc/nginx/sites-enabled/default
RUN mkdir -p /var/log/nginx && \ RUN mkdir -p /var/log/nginx && \
touch /var/log/nginx/error.log && \ touch /var/log/nginx/error.log && \
touch /var/run/nginx.pid touch /var/run/nginx.pid && \
usermod -a -G tty www-data
WORKDIR / WORKDIR /
RUN mkdir -p scripts/integrations/oracle RUN mkdir -p scripts/integrations/oracle

View file

@ -2,7 +2,8 @@ server {
listen 80 default_server; listen 80 default_server;
listen [::]:80 default_server; listen [::]:80 default_server;
server_name _; server_name _;
error_log /dev/stderr warn;
access_log /dev/stdout main;
client_max_body_size 1000m; client_max_body_size 1000m;
ignore_invalid_headers off; ignore_invalid_headers off;
proxy_buffering off; proxy_buffering off;

View file

@ -1,5 +1,5 @@
user www-data www-data; user www-data www-data;
error_log /var/log/nginx/error.log; error_log /dev/stderr warn;
pid /var/run/nginx.pid; pid /var/run/nginx.pid;
worker_processes auto; worker_processes auto;
worker_rlimit_nofile 8192; worker_rlimit_nofile 8192;