Commit 61fd893a authored by BAIRE Anthony's avatar BAIRE Anthony

use a genric command to apply the nginx patch

parent 34ce3c10
......@@ -19,9 +19,11 @@ RUN cd /tmp && pip3 install -r requirements.txt && rm requirements.txt
COPY . /opt/allgo
COPY .env /opt/allgo
RUN apply-patches /opt/allgo/setup/patches/*.diff
COPY init /dk/container_init
RUN patch /etc/nginx/nginx.conf < /opt/allgo/setup/dk/nginx.patch
RUN rm /etc/nginx/sites-enabled/default && \
rm /etc/supervisor/supervisord.conf && \
ln -s "/opt/allgo/setup/dk/allgo.conf" /etc/nginx/sites-enabled/allgo && \
......
5a6,7
> error_log /vol/log/nginx/error.log;
>
41,42c43,47
< access_log /var/log/nginx/access.log;
< error_log /var/log/nginx/error.log;
---
> access_log /vol/log/nginx/access.log;
>
> client_body_temp_path /vol/cache/nginx/body;
> fastcgi_temp_path /vol/cache/nginx/body;
> proxy_temp_path /vol/cache/nginx/body;
--- etc/nginx/nginx.conf
+++ etc/nginx/nginx.conf
@@ -2,6 +2,8 @@
worker_processes auto;
pid /run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;
+
+error_log /vol/log/nginx/error.log;
events {
worker_connections 768;
@@ -38,8 +40,11 @@
# Logging Settings
##
- access_log /var/log/nginx/access.log;
- error_log /var/log/nginx/error.log;
+ access_log /vol/log/nginx/access.log;
+
+ client_body_temp_path /vol/cache/nginx/body;
+ fastcgi_temp_path /vol/cache/nginx/body;
+ proxy_temp_path /vol/cache/nginx/body;
##
# Gzip Settings
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment