add dedicated user for better permission control

This commit is contained in:
Asif Bacchus
2019-11-11 00:04:15 -07:00
parent c9c4becf14
commit 935ae0d150
2 changed files with 20 additions and 5 deletions
+2 -2
View File
@@ -2,7 +2,7 @@
### NGINX main configuration
#
user nginx;
user www-docker;
worker_processes 1;
pid /var/run/nginx.pid;
@@ -24,7 +24,7 @@ http {
include /etc/nginx/mime.types;
# set default index and webroot
index index.php index.html;
index index.html index.htm default.htm;
root /usr/share/nginx/html;
# logging options (off by default for performance)