본문 바로가기

devOps6

Error creating Pull Request: Resource not accessible by i 📍 Error creating Pull Request: Resource not accessible by integration 뜰 때 GHA로 PR을 자동화시키려는데 GHA에서 다음 에러를 마주했다. 원인은 간단한데 PR을 만드는 주체가 저장소에 대한 권한이 없기 때문에 발생했다. 그래서 Repo-settings를 들여다보니 Actions-General에 Workflow permissions 관련 설정이 있었다. 기존에는 Read repository contents and packages permissions에 체크되어 있었는데 Read and write permissions로 바꾸니 해결되었다. Reference actions/first-interaction - issues#10 2023. 3. 1.
[ 도커(Docker) ] docker-compose dev, prod 모드로 리팩토링하기 📍 docker-compose dev, prod 모드로 리팩토링하기 docker-compose를 사용하여 nginx를 배포할 때 매번 가상 환경에서 SSL을 적용하는 과정을 거쳐야 했다. 예를 들어 nginx.conf의 server코드를 80에서 443으로 바꾸고 인증서의 경로를 추가하는 과정과 docker-compose - volumes에 letsencrypt 인증서를 넣는 과정이 포함됐다. 하지만 매번 SSL을 적용하는 과정을 거치다 보니 번거롭고 무엇보다 귀찮았다. 그래서 docker-compose에 아예 SSL을 적용한 버전과 SSL을 적용하지 않은 버전으로 나누면 어떨까?라는 생각을 했다. docker 공식문서를 찾아보니 -f 명령어를 사용하여 특정 파일을 빌드할 수 있다고 했다. 만약, 여러 .. 2022. 3. 16.
[ 엔진엑스(Nginx) ] nginx: [emerg] cannot load certificate BIO_new_file() failed SSL 오류 해결하기 📍 nginx: [emerg] cannot load certificate BIO_new_file() failed SSL 오류 해결하기 Docker-compose로 배포하는 과정에 다음과 같은 오류로 인해 배포 사이트에 SSL을 적용할 수 없었다. nginx: [emerg] cannot load certificate "/etc/nginx/ssl/live//fullchain.pem" : BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/nginx/ssl/live//fullchain.pem','r') error:2006D080:BIO routines:BIO_new_file:no .. 2022. 3. 14.
[ 엔진엑스(Nginx) ] [ warn ] the "ssl" directive is deprecated, use the listen ... 📍 the "ssl" directive is deprecated, use the listen ... Docker를 이용해 배포 환경에서 nginx.conf를 세팅하고 실행을 하는데 다음과 같은 경고문이 떴다. nginx_1 | 2022/03/10 22:11:52 [warn] 1#1: the "ssl" directive is deprecated, use the "listen ... ssl" directive instead in /etc/nginx/nginx.conf:35 nginx_1 | nginx: [warn] the "ssl" directive is deprecated, use the "listen ... ssl" directive instead in /etc/nginx/nginx.conf:35 Err.. 2022. 3. 11.
[ 도커(Docker) ] Let's Encrypt: Error creating new order :: too many certificates 오류 📍 Let's Encrypt: Error creating new order :: too many certificates 오류 Docker-compose를 이용하여 서버를 배포할 때 SSL(Secure Sockets Layer)인증을 받기 위해 범용적으로 사용하는 무료 인증기관인 Let's Encrypt을 이용하다가 테스트 작업하느라 인증서를 여러 번 재발급받았더니 다음과 같은 오류가 뜨면서 더 이상 인증서를 발급해주지 않았다. An unexpected error occurred: There were too many requests of a given type :: Error creating new order :: too many certificates (5) already issued for this e.. 2022. 3. 4.