-
-
Notifications
You must be signed in to change notification settings - Fork 176
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add storage.file_size_limit_bytes config #494
Merged
sweatybridge
merged 7 commits into
supabase:main
from
grschafer:add-storage-filesizelimit-config
Oct 9, 2022
Merged
feat: add storage.file_size_limit_bytes config #494
sweatybridge
merged 7 commits into
supabase:main
from
grschafer:add-storage-filesizelimit-config
Oct 9, 2022
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Adds [storage] table to config.toml with a file_size_limit_bytes value that defaults to 50 MiB. This config value becomes the FILE_SIZE_LIMIT env var for the storage docker container. Fixes supabase#489
sweatybridge
requested changes
Oct 1, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with just a small suggestion.
Pull Request Test Coverage Report for Build 3212624764
馃挍 - Coveralls |
grschafer
added a commit
to grschafer/supabase-cli
that referenced
this pull request
Oct 3, 2022
Suggested in PR review: supabase#494 (comment)
Suggested in PR review: supabase#494 (comment)
It seems preferable to transform a config file value (and throw any resulting errors) when parsing the config file, rather than waiting until we're starting up containers.
grschafer
force-pushed
the
add-storage-filesizelimit-config
branch
from
October 3, 2022 22:33
012e632
to
55afc8b
Compare
sweatybridge
changed the title
feat: Add storage.file_size_limit_bytes config
feat: add storage.file_size_limit_bytes config
Oct 9, 2022
sweatybridge
approved these changes
Oct 9, 2022
sweatybridge
pushed a commit
that referenced
this pull request
Oct 9, 2022
Suggested in PR review: #494 (comment)
馃帀 This PR is included in version 1.7.0 馃帀 The release is available on: Your semantic-release bot 馃摝馃殌 |
Thanks for pushing this over the finish line! 馃帀 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What kind of change does this PR introduce?
Feature
Adds [storage] table to config.toml with a file_size_limit_bytes value that defaults to 50 MiB. This config value becomes the FILE_SIZE_LIMIT env var for the storage docker container.
What is the current behavior?
The storage-api's file size limit is hard-coded to 50 MiB and is not configurable.
This PR fixes #489
What is the new behavior?
The storage-api's file size limit can be configured in config.toml like below:
If the storage table or the file_size_limit_bytes key are not specified, the limit defaults to 50 MiB.
Additional context
I'm unfamiliar with Go, so please let me know if I did anything wrong! 馃榾