原创

Web-nginx配置-大文件body大小、超时时间-主域名路由到局域网域名-各种域名配置等

#大文件 body大小、超时时间
location ^~/safetyjapi/fst/ {
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;
proxy_redirect off;
proxy_connect_timeout 1800s;
proxy_send_timeout 1800s;
proxy_read_timeout 1800s;
client_max_body_size 2048m;
proxy_pass http://10.81.56.245:10085/safetyjapi/fst/;
}

主域名路由到局域网域名:
www.baidu.com/obs-safety-project/xxxx
路由到
http://minio:19500/obs-safety-project/xxxx

location ~ ^(/minio|/hdi|/obs-safety-project) {
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X_Forwarded-For $remote_addr;
proxy_set_header X-Nginx-Proxy true;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_pass_request_headers on;
proxy_pass http://minio:19500;
}


以往的更多配置见《服务器-腾讯云服务器网站-资源备份》

正文到此结束
本文目录