在nginx上配置jenkins

server { listen 443;

    ssl on;
    ssl_certificate /home/ubuntu/proj/zhenshu/jenkins.yqm.io/1_jenkins.yqm.io_bundle.crt;
    ssl_certificate_key /home/ubuntu/proj/zhenshu/jenkins.yqm.io/2_jenkins.yqm.io.key;

    server_name jenkins.yqm.io;

    location / {
            proxy_pass http://127.0.0.1:8080;
            proxy_read_timeout  90;
            proxy_set_header X-Forwarded-Host $host:$server_port;
            proxy_set_header X-Forwarded-Server $host;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header X-Forwarded-Proto $scheme;
            proxy_set_header X-Real-IP $remote_addr;
    } }