server {
listen 80;
server_name git.xxxx.com;
return 301 https://$http_host$request_uri;
}
server {
listen 443 ssl;
server_name git.xxxx.com;
#必须要添加body大小
client_max_body_size 200m;
ssl_certificate /ssl/aijxb.com/git.aijxb.com.pem;
ssl_certificate_key /ssl/aijxb.com/git.aijxb.com.key;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;
ssl_prefer_server_ciphers on;
ssl_session_timeout 5m;
location / {
proxy_pass http://localhost:3000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}