Skip to content

Commit

Permalink
Merge pull request #23 from Tico-Corp/feature-be/TICO-147-update-nginx
Browse files Browse the repository at this point in the history
[FEAT] Nginx 설정 추가
  • Loading branch information
bu119 authored Jun 30, 2024
2 parents 54d351b + d0e14d3 commit 6b1fb45
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions nginx/conf/conf.d/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ server {
listen [::]:80;
server_name pomorodo.shop;

return 301 https://$host$request_uri;
# 더 견고한 HTTPS 리다이렉션
location / {
return 301 https://$host$request_uri;
}
}

server {
Expand All @@ -23,4 +26,4 @@ server {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
}

0 comments on commit 6b1fb45

Please sign in to comment.