Matteo Scandolo | 3b3b3b4 | 2016-12-15 17:31:53 -0800 | [diff] [blame] | 1 | server { |
Matteo Scandolo | 4132100 | 2017-01-03 13:57:45 -0800 | [diff] [blame] | 2 | listen 81; |
Matteo Scandolo | 3b3b3b4 | 2016-12-15 17:31:53 -0800 | [diff] [blame] | 3 | 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 Scandolo | d62ea79 | 2016-12-22 14:02:28 -0800 | [diff] [blame] | 14 | resolver 127.0.0.1 valid=30s; |
Matteo Scandolo | 3b3b3b4 | 2016-12-15 17:31:53 -0800 | [diff] [blame] | 15 | proxy_pass http://xos-rest-gw:3000; |
| 16 | } |
| 17 | |
| 18 | location /socket.io { |
Matteo Scandolo | d62ea79 | 2016-12-22 14:02:28 -0800 | [diff] [blame] | 19 | resolver 127.0.0.1 valid=30s; |
Matteo Scandolo | 3b3b3b4 | 2016-12-15 17:31:53 -0800 | [diff] [blame] | 20 | proxy_pass http://xos-rest-gw:3000; |
| 21 | } |
| 22 | } |