Skip to content
Snippets Groups Projects
Commit b45b703c authored by arthur.yueh's avatar arthur.yueh
Browse files
parent 943e944b
No related branches found
No related tags found
No related merge requests found
......@@ -5,8 +5,12 @@ TOKEN = os.getenv('GRAFANA_TOKEN', 'eyJrIjoiSkQ5NkdvWllHdnVNdlVhWUV3Tm5LSGc4NG53
EXTRA_HEADERS = dict(h.split(':') for h in os.getenv('GRAFANA_HEADERS', '').split(',') if 'GRAFANA_HEADERS' in os.environ)
HTTP_GET_HEADERS = {'Authorization': 'Bearer ' + TOKEN, **EXTRA_HEADERS}
HTTP_POST_HEADERS = {'Authorization': 'Bearer ' + TOKEN, 'Content-Type': 'application/json', **EXTRA_HEADERS}
HTTP_GET_HEADERS = {'Authorization': 'Bearer ' + TOKEN}
HTTP_POST_HEADERS = {'Authorization': 'Bearer ' + TOKEN, 'Content-Type': 'application/json'}
for k,v in EXTRA_HEADERS.items():
HTTP_GET_HEADERS.update({k: v})
HTTP_POST_HEADERS.update({k: v})
SEARCH_API_LIMIT = 5000
DEBUG = True
VERIFY_SSL = False
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment