访问地址:https://jenkins.devops.linux66.cn:4001
nginx配置代码如下:
server {
listen 4001 ssl;
server_name jenkins.devops.linux66.cn;
client_max_body_size 0;
ssl_certificate /etc/nginx/ssl/jenkins_devops_70mail_cn/jenkins.devops.linux66.cn_bundle.crt;
ssl_certificate_key /etc/nginx/ssl/jenkins_devops_70mail_cn/jenkins.devops.linux66.cn.key;
ssl_session_timeout 5m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE;
ssl_prefer_server_ciphers on;
location / {
proxy_http_version 1.1;
proxy_set_header Connection $connection_upgrade;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Host $host:$server_port;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Host $host:$server_port;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_max_temp_file_size 0;
client_max_body_size 10m;
client_body_buffer_size 128k;
proxy_connect_timeout 90;
proxy_send_timeout 90;
proxy_read_timeout 90;
proxy_buffering off;
proxy_pass http://127.0.0.1:8080;
}
}
jenkins后台(Dashboard>Manage Jenkins>System)配置地址
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。
评论(0)