refactoring nginx conf