location /api/ { proxy_http_version 1.1; proxy_cache_bypass $http_upgrade; proxy_pass http://localhost:5002; proxy_set_header Host $http_host; proxy_set_header Connection keep-alive; proxy_set_header Upgrade $http_upgrade; proxy_set_header X-Forwarded-Proto https; } # see pipeline yml