Skip to content

Instantly share code, notes, and snippets.

@jackboberg
Last active February 10, 2017 20:07
Show Gist options
  • Save jackboberg/473284e3da64ade613ae48035c7954c4 to your computer and use it in GitHub Desktop.
Save jackboberg/473284e3da64ade613ae48035c7954c4 to your computer and use it in GitHub Desktop.
# ./sites-enabled/config
server {
listen 8080;
server_name helloxervo-96020.app.xervo.io;
root /mnt/app/build;
index index.html index.htm;
# single page app routing
location /.+\..+ {
try_files $uri $uri/ =404;
}
location / {
try_files $uri /index.html;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment