switching nginx config to nginx-as module