From 65c203ac213a4bb235b26c43cafef6e5dc63e926 Mon Sep 17 00:00:00 2001 From: SelfhostedPro Date: Wed, 23 Sep 2020 12:54:05 -0700 Subject: [PATCH] changed nginx config to be in the default path --- Dockerfile | 2 +- nginx.conf | 4 ++-- root/etc/services.d/nginx/run | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9a7bd113..4701b412 100644 --- a/Dockerfile +++ b/Dockerfile @@ -46,7 +46,7 @@ COPY root / # Vue COPY --from=build-stage /app/dist /app -COPY nginx.conf /config/nginx/nginx.conf +COPY nginx.conf /etc/nginx/ # Expose VOLUME /config diff --git a/nginx.conf b/nginx.conf index c80baaf6..eafdbbdd 100644 --- a/nginx.conf +++ b/nginx.conf @@ -44,8 +44,8 @@ http { proxy_set_header Host $http_host; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "Upgrade"; - client_body_temp_path /config/nginx/client_body_temp; - proxy_temp_path /config/nginx/proxy_temp; + client_body_temp_path /var/www/client_body_temp; + proxy_temp_path /var/www/proxy_temp; # we don't want nginx trying to do something clever with # redirects, we set the Host: header above already. proxy_redirect off; diff --git a/root/etc/services.d/nginx/run b/root/etc/services.d/nginx/run index 8dcb2991..faa9b6af 100644 --- a/root/etc/services.d/nginx/run +++ b/root/etc/services.d/nginx/run @@ -6,4 +6,4 @@ if pgrep -f "[n]ginx:" > /dev/null; then pkill -ef [n]ginx: fi -exec nginx -c /config/nginx/nginx.conf -g "daemon off;" \ No newline at end of file +exec nginx -c /etc/nginx/nginx.conf -g "daemon off;" \ No newline at end of file