
worker_processes 1;

events {
    worker_connections 1024;
}

http {
    include       /etc/nginx/mime.types;
    default_type  application/octet-stream;
    charset_types text/xml text/plain text/vnd.wap.wml application/x-javascript application/rss+xml text/css application/javascript application/json;

    server {
        listen 80;

        #root {{ ES_PROJECT_ROOT }};

        location / {
            autoindex on;
        }
    }

    server {
        listen 12345;

        location / {
            proxy_pass http://elasticsearch:9200;
        }
    }

    server {
        listen 12346;

        location / {
            return 403;
        }
    }
}
