Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Custom API Domain for D1 Connections #76

Closed
OnurGvnc opened this issue Apr 7, 2024 · 4 comments
Closed

[Feature Request] Custom API Domain for D1 Connections #76

OnurGvnc opened this issue Apr 7, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@OnurGvnc
Copy link

OnurGvnc commented Apr 7, 2024

My team accesses the Cloudflare API (api.cloudflare.com) through a custom reverse proxy domain due to some security requirements (the path part remains identical to the Cloudflare domain). This setup allows us to generate user-specific custom tokens, enabling us to manage access more effectively.

Could you please add an optional field for specifying a custom API domain for D1 Connections?

Thank you very much for your work.

@OnurGvnc OnurGvnc added the enhancement New feature or request label Apr 7, 2024
@wyhaya
Copy link
Contributor

wyhaya commented Apr 8, 2024

@OnurGvnc Do you just want to change api.cloudflare.com?

host

# Before
https://api.cloudflare.com/client/v4
/accounts/{account_identifier}/d1/database/{database_identifier}/query

# After
CUSTOM_HOST/client/v4//accounts/{account_identifier}/d1/...

Do you need something like this? If so, it will be in the next version.

@OnurGvnc
Copy link
Author

OnurGvnc commented Apr 8, 2024

Perfect! This is exactly what we needed. Thank you so much. 🙏

@wyhaya
Copy link
Contributor

wyhaya commented Apr 10, 2024

@OnurGvnc Dataflare v.1.3.4 has been released, try it out!

@wyhaya wyhaya closed this as completed Apr 15, 2024
@OnurGvnc
Copy link
Author

@wyhaya I just tried it, and it's exactly what I needed! Thank you so much. Dataflare is the perfect app I've been looking for.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants