server
{
listen 80;
listen 443 ssl http2;
ssl_certificate /opt/soft/cert/116.com.cn.pem;
ssl_certificate_key /opt/soft/cert/116.com.cn.key;
ssl_protocols TLSv1.1 TLSv1.2 TLSv1.3;
ssl_ciphers EECDH+CHACHA20:EECDH+CHACHA20-draft:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5;
ssl_prefer_server_ciphers on;
ssl_session_cache shared:SSL:10m;
ssl_session_timeout 10m;
server_name microskit-prod.116.com.cn;
index index.php index.html index.htm default.php default.htm default.html;
location /microskit-api/ {
client_body_timeout 600;
client_max_body_size 500M;
proxy_read_timeout 600s; # 增加讀超時時間
proxy_connect_timeout 600s; # 增加連接超時時間
proxy_send_timeout 600s; # 增加發(fā)送超時時間
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://localhost:24010;
}
location /videoapplet-api/ {
client_body_timeout 600;
client_max_body_size 500M;
proxy_read_timeout 600s; # 增加讀超時時間
proxy_connect_timeout 600s; # 增加連接超時時間
proxy_send_timeout 600s; # 增加發(fā)送超時時間
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://localhost:7081;
}
location /index/ {
alias /opt/soft/microskit/microskit-index/;
}
location / {
root /opt/soft/microskit/microskit-admin;
}
error_page 404 =200 /index.html;
location /microskit-api/websocket/ {
proxy_pass http://127.0.0.1:24010;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}
nginx2
最后編輯于 :
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。
相關(guān)閱讀更多精彩內(nèi)容
- 什么是負載均衡 如果一臺服務(wù)器在某一段時間內(nèi)訪問量變大時,服務(wù)器的壓力就會越來越大,所使用的cpu和內(nèi)存大到超過服...
- 找到你的nginx.conf的文件夾目錄(/usr/local/nginx/conf),然后運行這個 nginx ...
- 啟動Nginx時候報錯:nginx: [error] open() “/usr/local/nginx/logs/...
- 1.本地環(huán)境的搭建 環(huán)境: wsl,Ubuntu版本 18.04 LTS 安裝docker,安裝docker-co...