본문 바로가기
반응형

IT Knowledge129

HAProxy with SSL Termination / SSL Pass-Through [HAProxy with SSL Termination] /etc/haproxy/haproxy.cfg 예시 ... frontend localhost # http, https connection 모두 허용 bind *:80 bind *:443 ssl crt /etc/haproxy/ssl/cert.pem # SSL Termination 수행 redirect scheme https if !{ ssl_fc } # http 요청시 https로 redirect 하기 위한 설정 mode http default_backend nodes backend nodes # backend server에 http request 전달 mode http balance roundrobin option forwardfor server we.. 2023. 8. 10.
Testing Your HAProxy Config For the impatient, here’s a simple command to test a configuration file: $ haproxy -f /path/to/haproxy.cfg -c The flag '-c', enables “check mode” and is the flag that tells HAProxy to test, without actually starting or restarting HAProxy Testing a Running Proxy’s Config Testing a throwaway config is one thing, but when you make a change to a running service’s configuration file, how should you t.. 2023. 8. 10.
Customize HAProxy Log format(Mode TCP / HTTP) Customizing the HAProxy Logs There are plenty of reasons why you might want to customize the fields captured by the HAProxy logs. For example: the default log format is giving you more information that you need you’re missing an important piece of information with the default log format you need to structure the fields in a way that an external tool can read them you rely on a standard log forma.. 2023. 8. 10.
Ansible Semaphore extra CLI Arguments 활용 Ansible-Semaphore에서 Task Templates > Advance Extra CLI Argumens를 이용한 활용 방법을 작성합니다. Extra CLI Arguments란, Ansible-playbook 을 실행할 때 추가 arguments를 작성하여 실행하는 것을 말합니다. Extra CLI Arguments를 활용하면, Playbook을 실행시마다 내가 원하는 옵션을 추가하여 실행할 수 있습니다. 예를들면, 특정 Hosts에만 동작한다던지. root 권한으로 실행한다던지 등... [Extra CLI Arguments 사용조건] Ansible-Semaphore에서 CLI Arguments를 Override 해서 사용하려면, 아래와 같이 "Allow override CLI args in t.. 2022. 6. 21.
Gradle increase read timeout 조치방안 [현상] : Gradle clean build 상에서 발생하는 오류. [원인] : http://URL/com/github/jnr/jffi/maven-metadata.xml. 위의 maven-metadata.xml 을 load 할 수 없다. Read timed out 정말 불러올수 없나? Curl로 잘 불러와 진다. 간헐적으로 10초가 넘을때가 있다. 원인은 알 수 없음. (네트워크 환경상?) [해결방안] Gradle 빌드시 read timeout 시간을 늘려보는 방법. 1. gradle.properties 설정에 추가 하는 방법. $ cat ~/.gradle/gradle.properties # Set the socket timeout to 5 minutes (good for proxies) systemP.. 2022. 6. 17.
CentOS NFS Server 설치 및 설정 Kubernetes PV로 사용하기 위해서 , NFS구성을 합니다!! NFS 서버 패키지 설치 # yum install nfs-utils rpc-bind (nfs-utils 만 설치하려고 해도, rpc-bind가 종속성이 있어서 같이 설치됩니다.) [NFS 서버 실행] # systemctl start nfs-server [NFS 설정] 공유할 디렉토리 생성 # mkdir /shared 공유 디렉토리 권한 설정 # chmod 756 /shared NFS Server exports 옵션 설정 #vi /etc/exports 모두에게 읽기쓰기 권한 부여 /shared *(rw, no_root_squash) 특정 IP대역 읽기쓰기 권한 부여 /shared 10.1.1.* (rw, no_root_squash) NF.. 2022. 5. 17.
반응형