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 127.0.0.1:12345; location / { proxy_pass http://127.0.0.1:9200; } } server { listen 127.0.0.1:12346; location / { return 403; } } }