diff --git a/Dockerfile.unprivileged b/Dockerfile.unprivileged index 87ffcce2..f61a7bc9 100644 --- a/Dockerfile.unprivileged +++ b/Dockerfile.unprivileged @@ -9,6 +9,8 @@ FROM nginx-s3-gateway RUN sed -i "/^server {/a \ listen 8080;" /etc/nginx/templates/default.conf.template \ && sed -i '/user nginx;/d' /etc/nginx/nginx.conf \ && sed -i 's#http://127.0.0.1:80#http://127.0.0.1:8080#g' /etc/nginx/include/s3gateway.js \ + && sed -i 's#80#8080#g' /etc/nginx/conf.d/default.conf \ + && sed -i 's#80#8080#g' /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh \ && sed -i 's,/var/run/nginx.pid,/tmp/nginx.pid,' /etc/nginx/nginx.conf \ && sed -i "/^http {/a \ proxy_temp_path /tmp/proxy_temp;\n client_body_temp_path /tmp/client_temp;\n fastcgi_temp_path /tmp/fastcgi_temp;\n uwsgi_temp_path /tmp/uwsgi_temp;\n scgi_temp_path /tmp/scgi_temp;\n" /etc/nginx/nginx.conf \ # Nginx user must own the cache and etc directory to write cache and tweak the nginx config