1 | server { |
2 | listen 443 ssl http2; |
3 | listen [::]:443 ssl http2; |
4 | server_name cloud.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 | client_max_body_size 100M; |
11 | proxy_intercept_errors on; |
12 | proxy_pass http://localhost:8082; |
13 |
|
14 | proxy_set_header Host $host; |
15 | proxy_set_header Connection $http_connection; |
16 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
17 | proxy_set_header X-Scheme $scheme; |
18 | proxy_buffering off; |
19 | } |
20 | location = /favicon.ico { |
21 | root /var/www/html; |
22 | } |
23 | } |
24 |
|