Skip to content

Commit

Permalink
[수정] nginx conf 오타 수정 (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
Eeap authored Aug 4, 2023
1 parent 11c677d commit a4a2744
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions nginx.conf
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
upstream api_server {
server 10.98.220.61:8000; # API upstream
}

server {
listen 80;
location / {
root /usr/share/nginx/html;
index index.html;
try_files $uri $uri/ /index.html;
}
localtion /api/ {
proxy_set_header Host $host;
proxy_pass http://10.98.220.61:8000/;

location /api/v1/ {
proxy_set_header Host $host;
proxy_pass http://api_server/api/v1/;
}
}

0 comments on commit a4a2744

Please sign in to comment.