Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update nginx.conf (#1) #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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;
}
}