added environment check to nginx framework conf file. moved nginx server config to single file