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;

}

}

相关推荐
从未止步..2 小时前
Jenkins未在第一次登录后设置用户名,第二次登录不进去怎么办?
java·运维·jenkins
Elastic 中国社区官方博客16 小时前
使用真实 Elasticsearch 进行高级集成测试
大数据·数据库·elasticsearch·搜索引擎·全文检索·jenkins·集成测试
risc1234562 天前
【Elasticsearch】中数据流需要配置索引模板吗?
大数据·elasticsearch·jenkins
skinGap2 天前
Node.js 中文编码问题全解析
node.js·jenkins·android-studio
字节全栈_PVK2 天前
Jenkins 的安装(详细教程)_jenkins安装
运维·jenkins
risc1234562 天前
【Elasticsearch】match_bool_prefix 查询 vs match_phrase_prefix 查询
大数据·elasticsearch·jenkins
柠檬豆腐脑3 天前
从前端到全栈:Jenkins 自动化部署 Node.js后端+ Vue.js 前端
前端·ci/cd·jenkins
risc1234563 天前
【Elasticsearch】 Intervals Query
大数据·elasticsearch·jenkins
ccnnlxc4 天前
日志收集Day007
运维·jenkins
喝醉酒的小白6 天前
Elasticsearch的索引生命周期管理
大数据·elasticsearch·jenkins