generate working nginx conf

this uses host variables