server { listen 64297 ssl; server_name example.com; server_tokens off; ssl_certificate /etc/nginx/ssl/nginx.crt; ssl_certificate_key /etc/nginx/ssl/nginx.key; ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH'; ssl_prefer_server_ciphers on; ssl_session_cache shared:SSL:10m; # add_header Strict-Transport-Security "max-age=63072000; includeSubdomains; "; satisfy any; allow 127.0.0.1; allow ::1; deny all; auth_basic "closed site"; auth_basic_user_file /etc/nginx/nginxpasswd; #proxy_buffering on; #proxy_buffer_size 8k; #proxy_buffers 48 8k; #proxy_busy_buffers_size 8k; #proxy_max_temp_file_size 4096m; #proxy_temp_file_write_size 64k; #gzip on; #gzip_disable "msie6"; #gzip_vary on; #gzip_proxied any; #gzip_comp_level 6; #gzip_buffers 16 8k; #gzip_http_version 1.1; #gzip_min_length 256; #gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/vnd.ms-fontobject application/x-font-ttf font/opentype image/svg+xml image/x-icon; location /kibana/ { proxy_pass http://localhost:64296; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_set_header Host $host; rewrite /kibana/(.*)$ /$1 break; } location /myhead/ { proxy_pass http://localhost:64298/; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_set_header Host $host; rewrite /myhead/(.*)$ /$1 break; } location /ui/ { proxy_pass http://localhost:64299; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_set_header Host $host; rewrite /ui/(.*)$ /$1 break; } location /at/ { proxy_pass http://localhost:8022; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_set_header Host $host; rewrite /at/(.*)$ /$1 break; } #location /webmin/ { # proxy_pass https://localhost:64300; # proxy_redirect https://$host:$server_port/ https://$host:$server_port/webmin/; # proxy_http_version 1.1; # proxy_set_header Upgrade $http_upgrade; # proxy_set_header Connection "upgrade"; # proxy_set_header Host $http_host; # rewrite /webmin/(.*)$ /$1 break; # } location /wetty { proxy_pass http://127.0.0.1:64300/wetty; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_read_timeout 43200000; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_set_header X-NginX-Proxy true; } location /netdata/ { proxy_set_header X-Forwarded-Host $host; proxy_set_header X-Forwarded-Server $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_pass http://localhost:64301; proxy_http_version 1.1; proxy_pass_request_headers on; proxy_set_header Connection "keep-alive"; proxy_store off; rewrite /netdata/(.*)$ /$1 break; } }