1 | server { |
2 | listen 443 ssl http2; |
3 | listen [::]:443 ssl http2; |
4 | server_name analytics.joshstock.in; |
5 | rewrite ^/(.*)/$ /$1 permanent; # truncate forward slash |
6 | error_page 404 /error-404.html; location = /error-404.html { |
7 | root /var/www/html; |
8 | } |
9 | location / { |
10 | proxy_intercept_errors on; |
11 | proxy_pass http://localhost:8080; |
12 |
|
13 | proxy_set_header Host $host; |
14 | proxy_set_header Connection $http_connection; |
15 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
16 | proxy_set_header X-Scheme $scheme; |
17 | proxy_buffering off; |
18 | } |
19 | location = /favicon.ico { |
20 | root /var/www/html; |
21 | } |
22 | } |
23 |
|