jenkins的nginx反向代理配置

[root@192-168-XX-XXconf.d]# cat jenkins-XXX.XXXX.conf

server {

listen 443 ssl;

server_name jenkins-XX.XXXX.cn;

#auth_basic "login auth";

#auth_basic_user_file /etc/nginx/conf.d/wlyy.user;

ssl_certificate /etc/nginx/cert/XXXX.pem;

ssl_certificate_key /etc/nginx/cert/XXXX.key;

ssl_session_timeout 5m;

ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;

ssl_protocols TLSv1 TLSv1.1 TLSv1.2;

ssl_prefer_server_ciphers on;

charset utf-8;

client_body_buffer_size 10M;

proxy_redirect off;

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-Server $host;

proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

proxy_set_header X-Forwarded-Proto $scheme;

proxy_next_upstream error timeout invalid_header http_502 http_503 http_504;

proxy_ignore_client_abort on;

proxy_read_timeout 180;

proxy_buffering on;

proxy_buffer_size 8k;

proxy_buffers 8 8M;

gzip on;

gzip_min_length 1000;

gzip_types text/plain text/css application/json text/xml application/xml application/xml+rss text/javascript;

location / {

proxy_pass http://192.168.XX.XXX:8080;

proxy_redirect default;

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-Server $host;

proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

proxy_set_header X-Forwarded-Proto $scheme;

}

}

相关推荐
szc17674 小时前
docker 相关命令
java·docker·jenkins
牙牙70510 小时前
Centos7安装Jenkins脚本一键部署
java·servlet·jenkins
灼烧的疯狂10 小时前
K8S + Jenkins 做CICD
容器·kubernetes·jenkins
java1234_小锋10 小时前
Elasticsearch中的节点(比如共20个),其中的10个选了一个master,另外10个选了另一个master,怎么办?
大数据·elasticsearch·jenkins
我的运维人生10 小时前
Elasticsearch实战应用:构建高效搜索与分析平台
大数据·elasticsearch·jenkins·运维开发·技术共享
运维老司机10 小时前
Jenkins修改LOGO
运维·自动化·jenkins
bug管理者12 小时前
UI自动化测试中公认最佳的设计模式-POM
jenkins·策略模式
ernesto_ji1 天前
Jenkins下载安装、构建部署到linux远程启动运行
linux·servlet·jenkins
运维老司机2 天前
Jenkins迁移数据目录
运维·jenkins
zpz20012 天前
Jenkins的环境部署
java·运维·jenkins