1 |
8884d114
|
mschwob
|
server {
|
2 |
220bfa94
|
mschwob
|
listen 80 default_server;
|
3 |
|
|
listen [::]:80 default_server;
|
4 |
8884d114
|
mschwob
|
|
5 |
|
|
root /usr/share/nginx/html;
|
6 |
|
|
|
7 |
220bfa94
|
mschwob
|
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 |
288f6d14
|
mschwob
|
proxy_pass http://app:8080/api/;
|
15 |
220bfa94
|
mschwob
|
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 |
8884d114
|
mschwob
|
}
|
21 |
|
|
}
|