server {
listen 443 ssl;
# 域名地址
server_name xxx.com www.xxx.com;
# 请求 body 最大大小,即上传附件最大大小
client_max_body_size 1024m;
# 证书
ssl_certificate "/home/cert/www/cert.pem";
# 证书
ssl_certificate_key "/home/cert/www/cert.key";
ssl_session_timeout 10m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5;
# charset utf-8;
location / {
# 反向代理地址,注意 /
proxy_pass http://127.0.0.1:8090/;
proxy_redirect off;
# 代理请求头
proxy_set_header HOST $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}