authorizerdev / authorizer

Your data, your control. Fully open source, authentication and authorization. No lock-ins. Deployment in Railway in 120 seconds || Spin a docker image as a micro-service in your infra. Built in login page and Admin panel out of the box.
https://authorizer.dev
MIT License
1.64k stars 166 forks source link

Add support to configure Couchbase Bucket RAM quota #317

Closed lakhansamani closed 1 year ago

lakhansamani commented 1 year ago

Feature Description Currently, bucket in couchbase is created with 1000M RAM, this is a configurable option while creating a bucket.

Describe the solution you'd like

Add env variable to configure bucket ram quota in MB

// EnvCouchbaseBucketRAMQuotaMB key for env variable COUCHBASE_BUCKET_RAM_QUOTA
// This value should be parsed as number
EnvCouchbaseBucketRAMQuotaMB = "COUCHBASE_BUCKET_RAM_QUOTA"

Update the following the line in codebase with the new configurable env: https://github.com/authorizerdev/authorizer/blob/b7357dde21e45a323e93a56089b34d7e1d128dad/server/db/providers/couchbase/provider.go#L95

Set the default value to 1000 while persisting env.

Describe alternatives you've considered

Additional context