-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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: Ability to proxy requests to another endpoint #4276
Comments
If you go to http://127.0.0.1:8090/_/#/login it can be easily exposed admin login |
Hmm, not sure but why not we reverse the request. So user request to astro server and in some path, it will proxy to pocketbase? https://stackoverflow.com/questions/73212935/astro-how-to-proxy-service-calls |
If you already has a working Go code then why don't just use it? You could continue writing your hooks in JS like before (but you need to pull in JSVM yourself) . |
Problem
Right now if you want to extend pocketbase as a framework without Go via JS then there are some limitations when it comes to routing. Curious if it would be possible to include an API similar to static files that can use a wild card to proxy requests too.
Possible Solution
This would need to support more than just GET. For example the API could be:
Here is an example that works if you compile with GO:
I also wrote a blog post on how I am doing this with Astro:
https://rodydavis.com/posts/astro-ssr-pocketbase-single-server
The downside of this is I believe it does not support auto updates
./pocketbase update
and requires GO knowledge to implement.The text was updated successfully, but these errors were encountered: