diff --git a/nginx/default.conf b/nginx/default.conf index 05f9071..6ea7f01 100644 --- a/nginx/default.conf +++ b/nginx/default.conf @@ -2,7 +2,7 @@ server { listen 80; listen [::]:80; - server_name api.dev.dadok.site; + server_name api.dev.dadok.app; location / { if ($request_method = 'OPTIONS') { @@ -28,11 +28,11 @@ server { server { listen 443 ssl; - server_name api.dev.dadok.site; + server_name api.dev.dadok.app; server_tokens off; - ssl_certificate /etc/letsencrypt/live/api.dev.dadok.site/fullchain.pem; # example.org를 도메인으로 변경 - ssl_certificate_key /etc/letsencrypt/live/api.dev.dadok.site/privkey.pem; # example.or를 도메인으로 변경 + ssl_certificate /etc/letsencrypt/live/api.dev.dadok.app/fullchain.pem; # example.org를 도메인으로 변경 + ssl_certificate_key /etc/letsencrypt/live/api.dev.dadok.app/privkey.pem; # example.or를 도메인으로 변경 include /etc/letsencrypt/options-ssl-nginx.conf; location / { @@ -41,4 +41,4 @@ server { 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 +}