반응형 IT Knowledge164 HAProxy Config파일 옵션 정리!! HAProxy 구성파일의 필수 섹션은 4가지가 있습니다. (작성시 빈 줄과 들여쓰기는 무시됩니다. ) Global Defaults Frontend Backend [Global] 구성 파일의 맨위에는 global 섹션을 작성합니다. HAProxy에 영향을 미치는 프로세스 전반의 보안 및 성능 조정을 정의 합니다. Global 섹션 예 global maxconn 50000 log/dev/log local0 user haproxy group haproxy stats socket /run/haproxy/admin.sock user haproxy group haproxy mode660 level admin nbproc2 nbthread4 cpu-mapauto:1/1-40-3 ssl-default-bind-ciph.. 2022. 1. 24. HAProxy Install(디렉토리 지정 설치) 회사에서 Load Balance가 필요할때, 유료 로드밸런스를 구매해서 사용하기도 하지만, 돈이 없거나 잠시 사용 or 테스트 용으로 사용할때 무료로 사용하는 용도로 HAProxy를 자주 구성하여 활용합니다. 오늘은 HAProxy를 설치&구성하는 방법을 작성합니다. OS와 APP의 영역을 구분하기 위해, HAProxy를 yum을 통한 설치가 아닌 디렉토리를 지정하여 설치하는 방식으로 진행합니다. [HAProxy의 Reverse Proxy 겸 Load Balance 동작 방식] 2020.12.10 - [IT Knowledge/HAProxy] - HAProxy, 오픈소스 로드 밸런서 [HAProxy Latest 버전 확인] 어떤 버전의 HAProxy를 설치할 것인가? 경로 : http://www.haprox.. 2022. 1. 24. Git clone Peer's certificate issuer [오류 내용] git clone시, 아래와 같이 Peer의 인증서 발행자를 신뢰하지 못하는 경우. [root@vm-centos-ctl app]# git clone https://github.com/ansible/awx.git Cloning into 'awx'... fatal: unable to access 'https://github.com/ansible/awx.git/': Peer's certificate issuer has been marked as not trusted by the user. [해결방안] git clone시 SSL을 검증하지 않도록 설정하는 방법. 2가지 방법이 있다. 1) Set SSL Verify to false only for specific repo: git config ht.. 2022. 1. 7. git proxy Setting(http/https) 회사에서 서버들이 인터넷을 하기 위해 Proxy 를 사용해야 한다면, $git clone시 Proxy 설정이 반드시 필요하다. git Proxy 설정방법 : git config --global http.proxy git config --global https.proxy 예를 들면. Git config --global http.proxy 192.168.0.1:8080 위의 Proxy 설정은 ~/.gitconfig 에서 확인 가능하다. 2022. 1. 7. Nginx 80 redirect 443(force redirect to HTTPS) Nginx HTTP(80)로 들어오면 강제로 HTTPS(443)로 전환하도록 설정하기 [설정방법] /conf/nginx.conf 설정 수정 Server 블록을 80과 443으로 분리 server { listen 80; server_name example.com; root html; } server { listen 443 ssl https; server_name example.com root html; } 그중 HTTP를 제공하는 서버 블록에 location 설정을 추가해주면 됩니다. HTTP요청을 HTTPS로 301 Redirect 응답을 보내줍니다. server { listen 80; server_name example.com; root html; location / { return 301 https:.. 2022. 1. 7. Docker.sock 일반 계정 사용 권한 이슈(permission denied) [상황] Jenkins Script를 통해 docker image를 만들고 배포하려고 할 때, Jenkins Agent를 구동하는 계정이 root가 아닌 일반 사용자계정이면 아래의 오류가 발생한다. [오류] Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.38/build?buildargs=%7B%7D&cachefrom=%5B%5D&cgroupparent=&cpuperiod=0&cpuquota=0&cpusetcpus=&cpusetmems=&cpushares=0&dockerfile=Dockerf.. 2022. 1. 5. 이전 1 ··· 12 13 14 15 16 17 18 ··· 28 다음 반응형