aswi2022code-of-duty-gitlab/frontend/nginx/nginx.conf @ a7ae217f
1 | 369e0228 | Schwobik | upstream app { |
---|---|---|---|
2 | server app:8080; |
||
3 | }
|
||
4 | 8884d114 | mschwob | server { |
5 | 0d941c5e | Jakub Smid | listen 80; |
6 | 8884d114 | mschwob | |
7 | root /usr/share/nginx/html; |
||
8 | |||
9 | 220bfa94 | mschwob | location / { |
10 | index index.html index.htm; |
||
11 | try_files $uri $uri/ /index.html; |
||
12 | 0d941c5e | Jakub Smid | }
|
13 | 220bfa94 | mschwob | |
14 | 369e0228 | Schwobik | location /api { |
15 | rewrite /api/(.*) /$1 break; |
||
16 | proxy_pass http://app; |
||
17 | 8884d114 | mschwob | }
|
18 | }
|