Skip to content

Commit

Permalink
Switched nginx master process to root.
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-vynar committed Sep 12, 2016
1 parent 276c58c commit ee760fc
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,7 @@ RUN curl -s -LO https://releases.hashicorp.com/consul/0.6.4/consul_0.6.4_linux_a
# ##### #

COPY nginx.conf nginx-ssl.conf /etc/nginx/
RUN touch /etc/nginx/.htpasswd && \
touch /run/nginx.pid && \
chown -R www-data:www-data /var/lib/nginx /run/nginx.pid && \
setcap cap_net_bind_service=+ep /usr/sbin/nginx
RUN touch /etc/nginx/.htpasswd

# ########################### #
# Supervisor and landing page #
Expand Down
1 change: 1 addition & 0 deletions nginx.conf
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
user www-data;
worker_processes 4;
pid /run/nginx.pid;
daemon off;
Expand Down
1 change: 0 additions & 1 deletion supervisord.conf
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ autorestart = true

[program:nginx]
priority = 4
user = www-data
command = nginx
stdout_logfile = /var/log/nginx.log
stderr_logfile = /var/log/nginx.log
Expand Down

0 comments on commit ee760fc

Please sign in to comment.