blob: cca72d5780f542a223f01e6351371ece3630fa9b [file] [log] [blame]
Matteo Scandolo3b3b3b42016-12-15 17:31:53 -08001server {
Matteo Scandolo41321002017-01-03 13:57:45 -08002 listen 81;
Matteo Scandolo3b3b3b42016-12-15 17:31:53 -08003 server_name localhost;
4
5 #charset koi8-r;
6 #access_log /var/log/nginx/log/host.access.log main;
7
8 location / {
9 root /var/www/dist;
10 index index.html index.htm;
11 }
12
13 location /api {
Matteo Scandolod62ea792016-12-22 14:02:28 -080014 resolver 127.0.0.1 valid=30s;
Matteo Scandolo3b3b3b42016-12-15 17:31:53 -080015 proxy_pass http://xos-rest-gw:3000;
16 }
17
18 location /socket.io {
Matteo Scandolod62ea792016-12-22 14:02:28 -080019 resolver 127.0.0.1 valid=30s;
Matteo Scandolo3b3b3b42016-12-15 17:31:53 -080020 proxy_pass http://xos-rest-gw:3000;
21 }
22}