diff --git a/backend/deploy/default.conf b/backend/deploy/default.conf index 9ae6059d..c73e25c4 100644 --- a/backend/deploy/default.conf +++ b/backend/deploy/default.conf @@ -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; @@ -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; - } -} \ No newline at end of file