Revize 220bfa94
Přidáno uživatelem Michal Schwob před asi 2 roky(ů)
frontend/nginx/nginx.conf | ||
---|---|---|
1 | 1 |
server { |
2 |
listen 8080; |
|
2 |
listen 80 default_server; |
|
3 |
listen [::]:80 default_server; |
|
3 | 4 |
|
4 | 5 |
root /usr/share/nginx/html; |
5 | 6 |
|
6 |
location /api { |
|
7 |
client_max_body_size 10m; |
|
8 |
proxy_pass http://app:8080/; |
|
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; |
|
9 | 20 |
} |
10 | 21 |
} |
Také k dispozici: Unified diff
Changed config for docker compose
re #9333