Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 9 additions & 12 deletions Pods and Containers in Kubernetes/nginx.conf
Original file line number Diff line number Diff line change
@@ -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;
}
}