aswi2022code-of-duty-gitlab/frontend/nginx/nginx.conf @ a6b9c49d
1 |
server { |
---|---|
2 |
listen 80; |
3 |
|
4 |
root /usr/share/nginx/html; |
5 |
|
6 |
location / { |
7 |
index index.html index.htm; |
8 |
try_files $uri $uri/ /index.html; |
9 |
}
|
10 |
|
11 |
location /api/ { |
12 |
proxy_pass http://app-backend:8080/api/; |
13 |
proxy_http_version 1.1; |
14 |
proxy_set_header Upgrade $http_upgrade; |
15 |
proxy_set_header Connection 'upgrade'; |
16 |
proxy_set_header Host $host; |
17 |
proxy_cache_bypass $http_upgrade; |
18 |
}
|
19 |
}
|