Nginx reverse proxy NSQAdmin
以下配置只针对nsqadmin v1.1.0 (built w/go1.10.3)版本 # # The default server # server { listen 80 default_server; listen [::]:80 default_server; server_name _; root /usr/share/nginx/html; # Load configuration files for the default server block. include /etc/nginx/default.d/*.conf; location /nsq/ { auth_basic "NSQ Administrator's Area"; auth_basic_user_file /root/nsq/bin/.htpasswd; proxy_pass http://127.0.0.1:4171/; # proxy_redirect default; proxy_redirect http://127.0.0.1:4171/ /nsq/; proxy_set_header Accept-Encoding ""; # no compression allowed or next won't work sub_filter_types *; sub_filter '/static