Created
June 28, 2016 13:51
-
-
Save arenoir/ab00ef67f2b2838f78ea950675e1a8bf to your computer and use it in GitHub Desktop.
Nginx config used with ember-cli-deploy-ssh2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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