1 | server { |
2 | listen 443 ssl http2; |
3 | listen [::]:443 ssl http2; |
4 | server_name comments.joshstock.in; |
5 | error_page 404 /error/404.html; location = /error/404.html { |
6 | root /var/www/josh/static; |
7 | } |
8 | location ^~ { |
9 | proxy_pass http://localhost:8888; |
10 |
|
11 | proxy_http_version 1.1; |
12 | proxy_set_header Upgrade $http_upgrade; |
13 | proxy_set_header Connection "upgrade"; |
14 | proxy_read_timeout 43200000; |
15 |
|
16 | proxy_set_header X-Real-IP $remote_addr; |
17 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
18 | proxy_set_header Host $http_host; |
19 | proxy_set_header X-NginX-Proxy true; |
20 |
|
21 | proxy_intercept_errors on; |
22 | } |
23 | location = /favicon.ico { |
24 | root /var/www/josh; |
25 | } |
26 | } |
27 |
|