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; # 增加发送超时时间
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; # 增加发送超时时间
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
最后编辑于 :
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。
推荐阅读更多精彩内容
- 找到你的nginx.conf的文件夹目录(/usr/local/nginx/conf),然后运行这个 nginx ...
- 启动Nginx时候报错:nginx: [error] open() “/usr/local/nginx/logs/...
- 1.本地环境的搭建 环境: wsl,Ubuntu版本 18.04 LTS 安装docker,安装docker-co...