summaryrefslogtreecommitdiff
path: root/front/nginx.conf
blob: c87e262b7e16c053a78e546e3906b1204a49a424 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
upstream server {
  server server:8080;
}

server {
  listen 80;

  location / {
    root  /usr/share/nginx/html/;
    index index.html index.htm index.nginx-debian.html;
    try_files $uri $uri/ /index.html; 
  }

  location /api/ {
    proxy_set_header Host $host;
    proxy_pass http://server/;
  }
}