You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
도메인 구매 및 설정
도메인 구매
가비아를 통해
[blooming-goal.store](http://blooming-goal.store)
주소 구매DNS 관리를 통해 운영 서버와 연결
ssl 적용
Nginx 설치하기
Nginx 시작 및 상태 확인
서버 접속
IP를 통해 서버에 접속하면, nginx 페이지가 뜸
앞서 만든 도메인으로도 접속 가능
Let's Encrypt 인증서 생성하기
Certbot 설치
certbot을 통한 인증서 발급
certbot을 통한 인증서 자동 갱신
https를 통해 접속 가능해짐 (자물쇠 아이콘이 생김)
nginx 설정 파일에도 https에 대한 설정이 추가됨
nginx reverse proxy를 통한 강제 리다이렉트 설정
blooming-goal.store
에 접속했을 때 위에서 보았던 nginx 기본 페이지가 아닌 블루밍 애플리케이션과 연결되도록 한다. 즉,blooming-goal.store
접속시 내부적으로는localhost:8080
으로 연결되도록 한다.proxy_pass
: 포워딩될 주소Host $http_host
: 다음 우선 순위의 $host 변수에는 요청 라인의 호스트 이름 또는 호스트 요청 헤더 필드의 호스트 이름 또는 요청과 일치하는 서버 이름이 포함됩니다.X-Real_IP $remote_addr
: 실제 방문자 원격 IP 주소를 프록시 서버로 전달X-Forwarded-For $proxy_add_x_forwarded_for
: 클라이언트가 프록시 처리한 모든 서버의 IP 주소를 포함하는 목록X-Forwarded-Proto $scheme
: HTTPS 서버 블록 내에서 사용할 경우 프록시 서버의 각 HTTP 응답이 HTTPS로 다시 작성HTTP를 HTTPS로 강제 리다이렉트 설정
위에서 nginx에 https에 대한 설정이 있었던 것을 이용해 설정할 수 있음
http://blooming-goal.store로
접속하더라도https://blooming-goal.store
로 접속됨을 확인할 수 있다(테스트를 위해 dev 서버로 임시 배포해두어 dev 용 관리자 페이지로 확인했습니다)
Beta Was this translation helpful? Give feedback.
All reactions