-
-
Notifications
You must be signed in to change notification settings - Fork 349
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
S3: add config flag to proxy S3 media #1014
S3: add config flag to proxy S3 media #1014
Conversation
a2538cd
to
8fe50a5
Compare
Heya, to get this passing CI tests you gotta update the test scripts Also, what will the behavior be like if a null url is returned? Will it then stream directly to the caller from s3 via gts? |
Ah, oki - will do! I suppose
I did not touch the existing behavior for null URLs, but tested it is actually proxying the data from S3 through GtS to the client. I suppose it is streaming the data, but didn't verify that - probably would be fit for another issue or PR anyway though. |
Oh are they missing? I think they need to be added here: https://github.com/superseriousbusiness/gotosocial/blob/main/internal/config/flags.go#L87 |
yep, saw that when I wanted to add my new flag ^^ I also still have that local branch to generate the defaults and flags from the config struct ... maybe polishing that would be great x) |
We have this generatey stuff already, check it out! https://github.com/superseriousbusiness/gotosocial/blob/main/internal/config/config.go#L45 |
isn't this only generating the config access helpers? Not the command line flags and defaults? And yeah, saw that and had to run it for my new config option - and am thinking of adding a PR to have go generate it automatically on building via |
Signed-off-by: Mara Sophie Grosch <littlefox@lf-net.org>
62fe817
to
f59184e
Compare
Added the new option to I think adding the command line flags is better for another PR |
f59184e
to
1de3fe6
Compare
OK, |
Thank you! |
This adds a config value to proxy S3 media through GtS instead of redirecting, while still defaulting to redirect.