diff --git a/docker-compose.yml b/docker-compose.yml index 9e254d1..1ded587 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,6 +5,10 @@ services: build: . ports: - "5173:80" + volumes: + - /etc/letsencrypt:/etc/letsencrypt:ro #인증서 마운트 + networks: + - app-network networks: app-network: diff --git a/nginx.conf b/nginx.conf index a959f20..009822e 100644 --- a/nginx.conf +++ b/nginx.conf @@ -1,11 +1,14 @@ server { - listen 80; - server_name cs25; - root /usr/share/nginx/html; - index index.html; + listen 443 ssl; + server_name cs25.co.kr www.cs25.co.kr; + + ssl_certificate /etc/letsencrypt/live/cs25.co.kr/fullchain.pem; + ssl_certificate_key /etc/letsencrypt/live/cs25.co.kr/privkey.pem; # React Router를 위한 설정 location / { + root /usr/share/nginx/html; + index index.html; try_files $uri $uri/ /index.html; } @@ -67,3 +70,9 @@ server { application/json; } + +server { + listen 80; + server_name cs25.co.kr www.cs25.co.kr; + return 301 https://$host$request_uri; +} \ No newline at end of file diff --git a/nginx.conf.template b/nginx.conf.template index 1aa3c80..009822e 100644 --- a/nginx.conf.template +++ b/nginx.conf.template @@ -1,11 +1,14 @@ server { - listen 80; - server_name cs25; - root /usr/share/nginx/html; - index index.html; + listen 443 ssl; + server_name cs25.co.kr www.cs25.co.kr; + + ssl_certificate /etc/letsencrypt/live/cs25.co.kr/fullchain.pem; + ssl_certificate_key /etc/letsencrypt/live/cs25.co.kr/privkey.pem; # React Router를 위한 설정 location / { + root /usr/share/nginx/html; + index index.html; try_files $uri $uri/ /index.html; } @@ -66,4 +69,10 @@ server { application/javascript application/json; +} + +server { + listen 80; + server_name cs25.co.kr www.cs25.co.kr; + return 301 https://$host$request_uri; } \ No newline at end of file diff --git a/src/components/common/SubscriptionModal.tsx b/src/components/common/SubscriptionModal.tsx index 7b71cc6..9334f4a 100644 --- a/src/components/common/SubscriptionModal.tsx +++ b/src/components/common/SubscriptionModal.tsx @@ -78,8 +78,8 @@ const SubscriptionModal: React.FC = ({ isOpen, onClose } const periods = [ { id: 'ONE_MONTH', label: '1개월' }, - { id: 'THREE_MONTH', label: '3개월' }, - { id: 'SIX_MONTH', label: '6개월' }, + { id: 'THREE_MONTHS', label: '3개월' }, + { id: 'SIX_MONTHS', label: '6개월' }, { id: 'ONE_YEAR', label: '1년' } ];