Skip to content

Instantly share code, notes, and snippets.

@sergeioff
Created August 17, 2017 10:38
Show Gist options
  • Save sergeioff/9c0dae71eb3eb624edd232a829d43ddb to your computer and use it in GitHub Desktop.
Save sergeioff/9c0dae71eb3eb624edd232a829d43ddb to your computer and use it in GitHub Desktop.
generic nginx configuration
location ~ /assets/(.*) {
try_files $uri $uri/ /ui/assets/$1;
}
location ~ (([^\/]+)+(\.js|svg|eot|ico|woff2|ttf|woff|map$)) {
try_files $uri $uri/ /ui/$1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment