containerized-data-importer/hack/build/docker/cdi-func-test-file-host-http/nginx.conf
2018-08-31 14:35:04 -07:00

45 lines
671 B
Nginx Configuration File

worker_processes 1;
daemon off;
events { worker_connections 1024; }
http {
types_hash_max_size 4096;
include /etc/nginx/mime.types;
sendfile on;
# no auth
server {
server_name localhost;
listen 80;
root /tmp/shared/images;
location / {
autoindex on;
autoindex_format json;
}
}
# auth
server {
server_name localhost;
listen 81;
root /tmp/shared/images;
auth_basic "auth test";
auth_basic_user_file /etc/nginx/htpasswd;
location / {
autoindex on;
autoindex_format json;
}
}
}