worker_processes 1; daemon off; # run in foreground events { worker_connections 1024; } http { server { listen 9900 default_server; ssl on; ssl_certificate server.crt; ssl_certificate_key server.key; client_max_body_size 200m; location / { proxy_pass http://localhost:9200; auth_basic "Restricted Content"; auth_basic_user_file htpasswd; } } }