Skip to content

Commit

Permalink
fix: fix nginx conf typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Eeap committed Aug 4, 2023
1 parent 11c677d commit 8d3fa3b
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 8d3fa3b

Please sign in to comment.