Skip to content

Instantly share code, notes, and snippets.

@arenoir
Created June 28, 2016 13:51
Show Gist options
  • Save arenoir/ab00ef67f2b2838f78ea950675e1a8bf to your computer and use it in GitHub Desktop.
Save arenoir/ab00ef67f2b2838f78ea950675e1a8bf to your computer and use it in GitHub Desktop.
Nginx config used with ember-cli-deploy-ssh2
http {
map $arg_revision $revision_path {
default "active";
~^\w+ "revisions/$arg_revision";
}
server {
listen 443 ssl http2;
location / {
alias /var/www/public/$revision_path/;
try_files $uri $uri/ /index.html;
}
location /revisions/ {
alias /var/www/public/revisions/;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment