separate nginx.config and fix duple file error