-
Notifications
You must be signed in to change notification settings - Fork 4
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
Tested on s3 backed by localstack #3
Comments
Thanks for testing it out! I hadn't even considered using localstack to test. The telltale signs that it's working are:
eg (looking at that screenshot, the filetypes being inferred as random strings is probably harmless, but also not great, filed #4) |
The main motive to test with localstack is to use it during development instead of deploying an s3 bucket on AWS. And I do see the signs you mentioned. Thank you for working on this |
For posterity, what other changes did you make to the |
since amazonaws.com is hardcoded in s3-presign crate, I have directly used the presigned_url function from the crate which accepts url as input to generate a presigned url. I just got a chance to look at your fork of rsapi, May I know the reason to use rust-s3 crate? |
The short answer is that I was debugging some signing issues. The longer answer is that I believe that the |
Thank you @bcspragu and @anudeepreddy for working on this! I'm dipping my toe and managed to make my local electron logseq talk to my local logseq-sync server. @anudeepreddy do you happen to have your rsapi/localstack work published anywhere? [0]
|
The short term solution is to build your own |
Yes, I did replicate most of your fork by hand just to get a sense of where the hooks are and made my logseq point to your rsapi package. I was curious about whether anyone already had published a version of rsapi that points to localhost. If not I'll go ahead and do it as it might be useful to share for development. I agree that, as you suggest, longer term there should be a way to specify the endpoint from the call site. I haven't digged enough to see how many points that has to touch within logseq codebase.
I did have to disable CORS in logseq-sync to let logseq web (on :3001) be able to call logseq-sync (on :8000), but it turned out to be necessary only when using logseq on a browser and not via electron. |
Hi,
I have tested this with a little modifications on the rsapi side to get it to work with s3 backed by localstack and I think it's working. I am able to see objects created in the s3 bucket.
The text was updated successfully, but these errors were encountered: