Skip to content

Instantly share code, notes, and snippets.

Folder Structure

Motivations

  • Clear feature ownership
  • Module usage predictibility (refactoring, maintainence, you know what's shared, what's not, prevents accidental regressions, avoids huge directories of not-actually-reusable modules, etc)
@gaurav-
gaurav- / nginx.conf
Last active February 6, 2016 11:45 — forked from blaind/nginx.conf
Prerender.io, nginx & meteor; see https://gist.github.com/thoop/8165802 for official gist (non-meteor at the time of writing)
server {
listen 80;
listen [::]:80;
server_name yourserver.com;
root /path/to/your/htdocs;
error_page 404 /404.html
index index.html;
@gaurav-
gaurav- / meteor-nginx
Last active February 6, 2016 11:40 — forked from dweldon/meteor-nginx
This is an example of how to configure nginx to serve a meteor app.
server {
listen 80;
server_name app.example.com;
rewrite ^ https://$server_name$request_uri? permanent;
}
server {
listen 443;
server_name app.example.com;