Open AravindPrabhs opened 2 months ago
I managed to connect the minIO docker instance by adding environment variables field to the storage struct.
// pkg/config/config.io
storage struct {
...
EnvironmentVariables map[string]string `toml:"env_environment_variables,omitempty"`
}
and then modified start.go
so the environment variables are passed to the container
for key, value := range utils.Config.Storage.EnvironmentVariables {
envVars = append(envVars, fmt.Sprintf("%s=%s", key, value))
}
happy to put in a pull request along these lines, and would this approach be worth extending for other services ?
Is your feature request related to a problem? Please describe.
I would like to use a S3 Compatible Storage Backend during local development and configure it using
config.toml
.Describe the solution you'd like
I would like to be able to specify the following env variables to the storage api server:
Though, separate I wonder if it possible to have a more general API to pass/pipe in whatever environment variables are specified in the config.toml for the particular service so it is easier to try out individual feature changes without forking the CLI.
Describe alternatives you've considered
My original problem is the file storage backend is not performant for range requests on large files please see my original discussion in the storage repo (https://github.com/supabase/storage/discussions/540).