Skip to content

Commit

Permalink
[FEAT] Nginx 설정 추가
Browse files Browse the repository at this point in the history
Nginx 설정에 HTTPS 리다이렉션 추가

Ref: TICO-147, TICO-147
  • Loading branch information
bu119 authored Jun 30, 2024
1 parent 54d351b commit d0e14d3
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 d0e14d3

Please sign in to comment.