Skip to content

Commit

Permalink
chore: ssl을 로드벨런서가 처리하도록 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
fromitive committed Dec 3, 2024
1 parent 97dc262 commit b28e997
Showing 1 changed file with 2 additions and 20 deletions.
22 changes: 2 additions & 20 deletions backend/deploy/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,9 @@ upstream active_server {
}

server {
listen 443 ssl;
listen 80;
server_name chongdae.site;

ssl_certificate /certificates/chongdae.site.crt;
ssl_certificate_key /certificates/chongdae.site.key;

location / {
proxy_pass http://active_server;
proxy_set_header Host $host;
Expand All @@ -18,27 +15,12 @@ server {
}

server {
listen 443 ssl;
listen 80;
server_name image.chongdae.site;

ssl_certificate /certificates/image.chongdae.site.crt;
ssl_certificate_key /certificates/image.chongdae.site.key;

root /uploads;

location / {
try_files $uri $uri/ =404;
}
}

# for health-check test locally
server {
listen 80;
server_name chongdae.site;
location / {
proxy_pass http://active_server;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}

0 comments on commit b28e997

Please sign in to comment.