title: recommended nginx configuration for meteor
body: <p>The site configuration for my meteor app has directives which look like the following:</p>
  
  <pre><code>server {
    listen 443;
    server_name XXX;
  
    ssl on;
    ssl_certificate XXX;
    ssl_certificate_key XXX;
  
    location / {
      proxy_pass http://localhost:3000;
      proxy_set_header X-Real-IP $remote_addr;  # http://wiki.nginx.org/HttpProxyModule
      proxy_http_version 1.1;  # recommended for keep-alive connections per http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_http_version
      proxy_set_header Upgrade $http_upgrade;
      proxy_set_header Connection "upgrade";
      proxy_set_header Host $host;
    }
  }
  </code></pre>
  
  <p>I feel like I should be telling nginx to serve contents of <code>static_cacheable</code> and setting the <code>expires</code> header to <code>max</code>. How exactly do I go about doing that? Are there other things I should add in here?</p>