aswi2022code-of-duty-gitlab/frontend/nginx/nginx.conf @ 2d82649d
1 |
upstream app { |
---|---|
2 |
server app:8080; |
3 |
}
|
4 |
server { |
5 |
listen 80; |
6 |
|
7 |
root /usr/share/nginx/html; |
8 |
|
9 |
location / { |
10 |
index index.html index.htm; |
11 |
try_files $uri $uri/ /index.html; |
12 |
}
|
13 |
|
14 |
location /api { |
15 |
rewrite /api/(.*) /$1 break; |
16 |
proxy_pass http://app; |
17 |
}
|
18 |
}
|