Update nginx.sh

Added caching of of static files such as images and stylesheets. Fixes errors with routing and frontend controllers.