-
-
Notifications
You must be signed in to change notification settings - Fork 41
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
Documentation for cloud storage function #66
Conversation
zestream-server/service/consumer.go Line 87 in 038f951
Here, we are storing the Azure container name in constants. Shouldn't we use an env variable for it? @abhishekraj272 @uzaxirr |
No, Container name isn't some security key or any much confidential info which could be used to gain access. Such things should be stored in constants i believe. |
Right. But does the user set the container name (or it stays the same for every user) or they just provide the credentials? @uzaxirr |
It's customisable, currently it stays the same (the value mentioned in constant) but if someone wants to change for their self-hosted instance they can do so by editing the constant's value in their fork |
Alrighty. Then we should not create it as an zestream-server/configs/configs.go Line 34 in 038f951
Shouldn't we have the s3 bucket name and region as constants too? |
@Shofiya2003 bucket name and region should be configurable from user side, cos bucket name is unique and people can deploy it on any region so, should be set by user only. Container inside the bucket is generated by the code and can be common on every bucket. Container is just a folder inside the bucket. |
Okay |
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!
This is a good starting point. We can improve and iterate over it later on as well
Added documentation for cloud storage function including details to configure cloud storage accounts.
Closes #47