젠킨스 Ngnix Reverse Proxy 설정

  1. 젠킨스 Ngnix Reverse Proxy 설정 설정 방법
    • 80 Port 사용 하지 않고 설정
  2. 설정 방법
    • Nginx 설정 진행
    • 자꾸 pluginManager 같이 몇몇 메뉴 선택시 80 포트 선택을 하게 되면서 잘 안되었다.
    • proxy_set_header Host $host:21080; 설정부분이
upstream jenkins {
  keepalive 32; # keepalive connections
  server 192.168.42.21:8080; # jenkins ip and port
}

# Required for Jenkins websocket agents
map $http_upgrade $connection_upgrade {
        default upgrade;
        '' close;
}
#server {
#  listen 80;
#  listen [::]:80;
#  server_name localhost fail_timeout=0;
#  return 301 localhost:21080$request_uri;
#}
server {
  listen          21080 default;       # Listen on port 80 for IPv4 requests

  server_name     192.168.42.21:8080;

  # pass through headers from Jenkins that Nginx considers invalid
  ignore_invalid_headers off;



  location / {
      sendfile off;
      proxy_pass         http://192.168.42.21:8080;
      proxy_redirect     default;
      proxy_http_version 1.1;

      # Required for Jenkins websocket agents
      proxy_set_header   Connection        $connection_upgrade;
      proxy_set_header   Upgrade           $http_upgrade;

      proxy_set_header   Host              $host:21080;
      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      90;
      proxy_send_timeout         90;
      proxy_read_timeout         90;
      proxy_buffering            off;
      proxy_request_buffering    off; # Required for HTTP CLI commands
      proxy_set_header Connection ""; # Clear for keepalive
  }

}

2021

Openshift Gitlab Helm 설치

1 minute read

Openshift Gitlab Install Openshift Gitlab Helm Install Helm Repo Add 레퍼런스는 여기 확인 https://docs.gitlab.com/cha...

리눅스 CR/LF 변환 파이썬 & 끝에 라인개행 들어간 파일 제거

less than 1 minute read

##개요 리눅스의 라인개행은 윈도우의 라인개행과 다르다. 고객의 요청으로 많은 건수의 파일을 이동할 일이 있었는데, 파일 리스트를 윈도우에서 작성해서 넘어오는 바람에 원치않은 라인개행 문자가 파일 끝에 들어가게 되어 해결방법을 남긴다. 파일 리스트 라인개...

Back to Top ↑

2020

Back to Top ↑

2019

Linux(RHEL) raw-device 생성

less than 1 minute read

raw-device OS의 캐싱없이 DB나 다른 시스템에서 직접 캐싱을 사용하려고 할 때 쓰인다.

SSH PasswordLess 로그인

less than 1 minute read

SSH Passwordless 로그인을 위해선 SSH 공개키 배포가 필요하다. 테스트 OS RHEL7 서버 구성 sshServer - sshClient sshServer -> sshClinet로 ssh 비밀번호 없어 접속 ...

Openshift 4.2 설치

1 minute read

레퍼런스. https://docs.openshift.com/container-platform/4.2/installing/installing_vsphere/installing-vsphere.html?extIdCarryOver=true&sc_cid=701f2000001OH74A...

Parted 사용법

less than 1 minute read

Parted 명령어 2TB 이상부터는 Fdisk 파티션 분할이 어렵다. Parted를 사용하자

Back to Top ↑