Replace nginx upstream directives with *_pass to releveant sockets inside location blocks.