server { listen 8082; location / { proxy_pass http://localhost:8080; } location /swagger.yaml { proxy_pass http://localhost:8080/api/v1/swagger.yaml; } location /swagger-ui/ { proxy_pass http://localhost:8081/; } }