Skip to content

Instantly share code, notes, and snippets.

Revisions

  1. @learncodeacademy learncodeacademy created this gist Jul 24, 2014.
    20 changes: 20 additions & 0 deletions gistfile1.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,20 @@
    upstream project {
    server 22.22.22.2:3000;
    server 22.22.22.3:3000;
    server 22.22.22.5:3000;
    }

    server {
    listen 80;

    location / {
    proxy_pass http://project;
    }
    location ~* \.(css|js|gif|jpe?g|png)$ {
    expires 168h;

    }
    location /api {
    expires 10m;
    }
    }