nginx基于SSL方式代理jenkins和kibana
admin
2023-03-05 01:42:22
0
server {
  server_name  hanye-jenkins.hanye.net;
  access_log  /data/wwwlogs/jenkins-web.access.log  ;
  error_log  /data/wwwlogs/jenkins-web.error.log;
  listen 443 ssl;

    ssl_certificate   /usr/local/nginx/conf/ssl/hanye.net.pem;
    ssl_certificate_key  /usr/local/nginx/conf/ssl/hanye.net.key;
    ssl_session_timeout 10m;
    ssl_buffer_size     64k;
    ssl_session_cache       shared:SSL:10m;
    ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
    ssl_protocols TLSv1 TLSv1.1 TLSv1.2 SSLv3;
    ssl_prefer_server_ciphers on;

  location / {
      proxy_pass http://127.0.0.1:8080;
      proxy_redirect     default;
      #proxy_http_version 1.1;

      proxy_set_header   Host              $host;
      proxy_set_header   X-Real-IP         $remote_addr;
      proxy_set_header   X-Forwarded-For   $proxy_add_x_forwarded_for;
      proxy_set_header   X-Forwarded-Proto $scheme;
      proxy_max_temp_file_size 0;

      #this is the maximum upload size
      client_max_body_size       10m;
      client_body_buffer_size    128k;

      proxy_connect_timeout      120;
      proxy_send_timeout         120;
      proxy_read_timeout         120;
      proxy_buffering            off;
      proxy_request_buffering    off; # Required for HTTP CLI commands in Jenkins > 2.54
      proxy_set_header Connection ""; # Clear for keepalive
   }
   location  /oss {
      expires 3d;
      rewrite /(.+)$ /$1 break;
      proxy_pass https://fangx.oss-cn-shenzhen.aliyuncs.com/fangx/source/ZPMOQ2xjSwmBvNB1scM7JYwAgqCJvueKYlWbjlsu.png;
   }
}
server {
    server_name  hanye-es.hanye.net;
    access_log  /data/wwwlogs/es-web.access.log  ;
    error_log  /data/wwwlogs/es-web.error.log;
    listen 443 ssl;
    auth_basic "Nginx";  
    auth_basic_user_file /usr/local/nginx/conf/passwd;
    autoindex on;
    ssl_certificate   /usr/local/nginx/conf/ssl/hanye.net.pem;
    ssl_certificate_key  /usr/local/nginx/conf/ssl/hanye.net.key;
    ssl_session_timeout 10m;
    ssl_buffer_size     64k;
    ssl_session_cache       shared:SSL:10m;
    ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
    ssl_protocols TLSv1 TLSv1.1 TLSv1.2 SSLv3;
    ssl_prefer_server_ciphers on;

  location / {
      proxy_pass http://10.0.109.17:5601;
      proxy_redirect     off;
      proxy_http_version 1.1;

      proxy_set_header   Host              $host;
      proxy_set_header   X-Real-IP         $remote_addr;
      proxy_set_header   X-Forwarded-For   $proxy_add_x_forwarded_for;
      proxy_set_header   X-Forwarded-Proto $scheme;
      proxy_max_temp_file_size 0;

      #this is the maximum upload size
      client_max_body_size       10m;
      client_body_buffer_size    128k;

      proxy_connect_timeout      120;
      proxy_send_timeout         120;
      proxy_read_timeout         120;
      proxy_buffering            off;
      proxy_request_buffering    off; # Required for HTTP CLI commands in Jenkins > 2.54
      proxy_set_header Connection ""; # Clear for keepalive
 }
}

相关内容

热门资讯

玩家最新攻略“微信十三水.有没... 家人们!今天小编来为大家解答微信十三水透视挂怎么安装这个问题咨询软件客服徽4282891的挂在哪里买...
最新引进“同城游贵阳捉鸡麻将.... 家人们!今天小编来为大家解答同城游贵阳捉鸡麻将透视挂怎么安装这个问题咨询软件客服徽9784099的挂...
今日重大通报“新皇豪炸金花.可... 家人们!今天小编来为大家解答新皇豪炸金花透视挂怎么安装这个问题咨询软件客服徽9752949的挂在哪里...
终于了解“大庆划水麻将.到底有... 您好:大庆划水麻将这款游戏可以开挂,确实是有挂的,需要了解加客服微信【9784099】很多玩家在这款...
重磅消息“掌中乐游戏中心.到底... 您好:掌中乐游戏中心这款游戏可以开挂,确实是有挂的,需要了解加客服微信【4282891】很多玩家在这...
今日重大消息“天天福州十三水.... 您好:天天福州十三水这款游戏可以开挂,确实是有挂的,需要了解加客服微信【4282891】很多玩家在这...
【第一财经】“算番宝典.到底是... 网上科普关于“算番宝典有没有挂”话题很是火热,小编也是针对算番宝典作*弊开挂的方法以及开挂对应的知识...
终于了解“情怀娱乐.有没有挂?... 终于了解“情怀娱乐.有没有挂?”太坑了原来有挂您好,情怀娱乐这个游戏其实有挂的,确实是有挂的,需要了...
终于明白“闽悦麻将.有挂吗?”... 终于明白“闽悦麻将.有挂吗?”确实真的有挂您好,闽悦麻将这个游戏其实有挂的,确实是有挂的,需要了解加...
【第一消息】“新老夫子拼三张.... 网上科普关于“新老夫子拼三张有没有挂”话题很是火热,小编也是针对新老夫子拼三张作*弊开挂的方法以及开...