tweak nginx config and config.js for mediahub