Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

Proxy json requests #88

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

raphaeleidus
Copy link
Contributor

If you are for some reason unable to add the proper CORS headers to your graphite instance you can use this simple proxy to bypass the restriction.

@raphaeleidus
Copy link
Contributor Author

This requires ruby 2

data_source_url = is_influx ? ENV["INFLUXDB_URL"] : ENV["GRAPHITE_URL"]
auth_details = is_influx ? ENV["INFLUXDB_AUTH"] : ENV["GRAPHITE_AUTH"]
auth_details = auth_details.split(':') if auth_details
if ENV['USE_PROXY']
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we also check here to make sure we're not using Librato? Doesn't look like Librato is supported in your PR.

@obfuscurity
Copy link
Owner

Would you mind rebasing?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants