html5, Nginx

Nginx config for HTML5 history API

location / {
  try_files $uri @rewrites;

location @rewrites {
  rewrite ^(.+)$ /index.html last;

Loopback, nodejs

Error: maxFileSize exceeded, received 10551117 bytes of field data (max is 10485760)

When you try to upload file bigger that 20MB and if you get the error message “maxFileSize exceeded” then increase the maxFileSize on datasources.json file.

"filestorage": {
    "name": "filestorage",
    "connector": "loopback-component-storage",
    "provider": "amazon",
    "key": "Your aws s3 api key",
    "keyId": "Your aws s3 keyId",
    "maxFileSize": "52428800"