1 |
8884d114
|
mschwob
|
server {
|
2 |
0d941c5e
|
Jakub Smid
|
listen 80;
|
3 |
8884d114
|
mschwob
|
|
4 |
|
|
root /usr/share/nginx/html;
|
5 |
|
|
|
6 |
220bfa94
|
mschwob
|
location / {
|
7 |
|
|
index index.html index.htm;
|
8 |
|
|
try_files $uri $uri/ /index.html;
|
9 |
0d941c5e
|
Jakub Smid
|
}
|
10 |
220bfa94
|
mschwob
|
|
11 |
|
|
location /api/ {
|
12 |
0d941c5e
|
Jakub Smid
|
proxy_pass http://app-backend:8080/api/;
|
13 |
220bfa94
|
mschwob
|
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 |
8884d114
|
mschwob
|
}
|
19 |
|
|
}
|