Skip to content
Snippets Groups Projects
Commit 72a1004c authored by Cyril L'Orphelin's avatar Cyril L'Orphelin
Browse files

Change directory of nginx configuration files

parent 8699436e
No related branches found
No related tags found
No related merge requests found
......@@ -28,9 +28,12 @@ RUN addgroup nginx root
# support running as arbitrary user which belongs to the root group
RUN chmod g+rwx /var/cache /var/run /var/log
# users are not allowed to listen on priviliged ports
RUN sed -i.bak 's/listen\(.*\)80;/listen 8081;/' /etc/nginx/conf.d/default.conf
#RUN sed -i.bak 's/listen\(.*\)80;/listen 8081;/' /etc/nginx/conf.d/default.conf
RUN sed -i.bak 's/listen\(.*\)80;/listen 8081;/' /opt/nginx/conf/nginx.conf
# comment user directive as master process is run as user in OpenShift anyhow
RUN sed -i.bak 's/^user/#user/' /etc/nginx/nginx.conf
#RUN sed -i.bak 's/^user/#user/' /etc/nginx/nginx.conf
RUN sed -i.bak 's/^user/#user/' /opt/nginx/nginx.conf
# forward request and error logs to docker log collector
RUN ln -sf /dev/stdout /var/log/nginx/access.log && ln -sf /dev/stderr /var/log/nginx/error.log
######################
......@@ -60,7 +63,7 @@ EXPOSE 80
EXPOSE 8081
RUN ls -alh
RUN mv symfony.conf /etc/nginx/conf.d/default.conf
RUN mv symfony.conf /opt/nginx/conf.d/default.conf
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment