diff --git a/Pods and Containers in Kubernetes/nginx.conf b/Pods and Containers in Kubernetes/nginx.conf index 4154308..dfabaee 100644 --- a/Pods and Containers in Kubernetes/nginx.conf +++ b/Pods and Containers in Kubernetes/nginx.conf @@ -1,28 +1,25 @@ -user nginx -worker_processes auto - -error_log /var/log/nginx/error.log notice -pid /var/run/nginx.pid +worker_processes auto; events { - worker_connections 1024 + worker_connections 1024; } + http { server { - listen 80 - server_name localhost + listen 80; + server_name localhost; location / { - root /usr/share/nginx/html - index index.html index.htm + root /usr/share/nginx/html; + index index.html index.htm; } - auth_basic "Secure Site" - auth_basic_user_file conf/.htpasswd + auth_basic "Secure Site"; + auth_basic_user_file conf/.htpasswd; } }