location ~* ^/hub/api/v([0-9]+)/([A-Za-z0-9-]+)/resources/ingest$ { include /ingress/cors.conf; # verify request against idp # idp will put a JWT into the X-Request-Token header # you will need to generate new tokens (see hub flags for example) # change your base URL to http://hub # include /ingress/auth_verify.conf; resolver 127.0.0.11 valid=5s; rewrite ^/hub/api/v([0-9-]+)/([A-Za-z0-9-]+)/resources/ingest /api/v$1/$2/resources/ingest break; proxy_connect_timeout 1s; proxy_pass $sync_ingester:3333; }