I am trying to move Magento 2.1.2 from Apache2 to Nginx due to its performance but I have a problem with frontend. It doesn't load any CSS and JS files. They're not even included in page source. The whole section starting from opening HTML tag to Google Analytics script is missing. I am using default Magento Nginx config file.
I already tried clearing all cache files and running
php bin/magento setup:static-content:deploy
but the page doesn't even load after that. Admin panel works fine.