Skip to content

Commit

Permalink
Update default.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
devYSK authored Mar 25, 2024
1 parent 9508273 commit 6c481dd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions nginx/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand All @@ -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 / {
Expand All @@ -41,4 +41,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 6c481dd

Please sign in to comment.