static: fix permissions and nginx configuration