Skip to content

Latest commit

 

History

History
9 lines (6 loc) · 504 Bytes

AUTH_PROXY.md

File metadata and controls

9 lines (6 loc) · 504 Bytes

Authenticating requests behind a proxy

If your instance is behind an authenticating proxy that requires additional headers, they can be supplied via environment variables as follows:

SRC_HEADER_AUTHORIZATION="Bearer $(curl http://service.internal.corp)" SRC_HEADER_EXTRA=metadata src search 'foobar'

In this example, the headers authorization: Bearer my-generated-token and extra: metadata will be threaded to all HTTP requests to your instance. Multiple such headers can be supplied.