server {
listen 80;
server_name jira.bdgatewaynet.com;
rewrite ^(.*) https://$server_name$1 permanent;
}
server {
listen 443 ssl;
server_name jira.bdgatewaynet.com;
ssl_certificate /etc/nginx/https/bdgatewaynet.com.crt;
ssl_certificate_key /etc/nginx/https/bdgatewaynet.com.key;
location / {
proxy_pass http://xxxxxx:8080;
client_max_body_size 100m;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
access_log /var/log/nginx/jira_access.log main;
}
标签:jira,server,proxy,https,com,bdgatewaynet From: https://www.cnblogs.com/yixiushuma/p/17438138.html