proxy_cache_path /data/nginx_cache levels=1:2 keys_zone=my_cache:10m max_size=10g inactive=60m use_temp_path=off; server { listen 443 ssl http2; listen [::]:443 ssl http2; server_name www.shinnku.com; index index.html; root /var/www/html; location / { proxy_ssl_name dev.shinnku.us; proxy_ssl_server_name on; proxy_set_header Host dev.shinnku.us; proxy_set_header X-real-ip $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_redirect off; proxy_pass https://104.21.14.49:443; proxy_http_version 1.1; proxy_ignore_headers Cache-Control Expires Set-Cookie; proxy_cache my_cache; proxy_cache_valid 200 15m; proxy_cache_key $request_uri$is_args$args; proxy_cache_lock on; proxy_cache_lock_timeout 5s; } ssl_certificate /etc/letsencrypt/live/shinnku.com/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/shinnku.com/privkey.pem; } server { listen 443 ssl http2; listen [::]:443 ssl http2; server_name download.shinnku.com; index index.html index.htm default.php default.htm default.html; root /var/www/html; location / { proxy_ssl_name dl.oo0o.ooo; proxy_ssl_server_name on; proxy_set_header Host dl.oo0o.ooo; proxy_set_header X-real-ip $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_redirect off; proxy_pass https://104.21.28.229:443; proxy_http_version 1.1; chunked_transfer_encoding on; client_body_buffer_size 16k; proxy_buffering off; client_body_in_single_buffer on; client_body_in_file_only on; } ssl_certificate /etc/letsencrypt/live/shinnku.com/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/shinnku.com/privkey.pem; }