refactor nginx conf