fix some bugs for sentry recipe, change nginx conf template