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