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;

}

}

相关推荐
鸭梨山大。36 分钟前
Jenkins 任意文件读取(CVE-2024-23897)修复及复现
安全·中间件·jenkins
两张不够花41 分钟前
Jenkins 持续集成部署
运维·jenkins
青木沐9 小时前
Jenkins介绍
运维·jenkins
只会copy的搬运工14 小时前
Jenkins 持续集成部署——Jenkins实战与运维(1)
运维·ci/cd·jenkins
测试杂货铺15 小时前
如何用postman做接口自动化测试及完美的可视化报告?
自动化测试·软件测试·测试工具·职场和发展·jenkins·压力测试·postman
科马18 小时前
【Jenkins】持久化
java·运维·jenkins
编程、小哥哥20 小时前
在 Docker 中部署 Jenkins,并完成项目的构建和发布
servlet·docker·jenkins
_oP_i1 天前
.NET Core 项目配置到 Jenkins
运维·jenkins·.netcore
coder_pig2 天前
📝小记:Ubuntu 部署 Jenkins 打包 Flutter APK
flutter·ubuntu·jenkins
运维&陈同学2 天前
【Elasticsearch05】企业级日志分析系统ELK之集群工作原理
运维·开发语言·后端·python·elasticsearch·自动化·jenkins·哈希算法