Fixes static files url in nginx.conf
Removes duplicated code