Last Updated on July 26, 2022.
Some key points in utilizing NocoDb for inventory databases and minio for S3 image/document storage
Minio Admin Client
https://docs.min.io/docs/minio-client-complete-guide.html
Attach to a server:
./mc alias set <serveralias> <url> <user> <pass>
Making a bucket public for download permanently
If the buckets are just for image retrieval, and there’s no issue in making them public, we set the policy on the bucket to download by doing this:
./mc policy set download <alias>/<bucket></path if not root>
Adding minio event webhooks
Unfortunately, MC running on windows attempts to resolve the remote queue directory against my local HD. So I had to run the client on the host machine, it stopped trying to resolve it then (Linux)
wget https://dl.min.io/client/mc/release/linux-amd64/mc
chmod +x mc
./mc --help
./mc admin config set myminio/localbuck notify_webhook:1 queue_limit="10" auth_token="<authtoken>" endpoint="<endpoint>" queue_dir="<fq_queue_dir>"
./mc event add myminio/localbuck arn:minio:sqs::1:webhook --event put --suffix .jpg
./mc event add myminio/localbuck arn:minio:sqs::1:webhook --event put --suffix .JPG
./mc event add myminio/localbuck arn:minio:sqs::1:webhook --event put --suffix .jpeg
./mc event add myminio/localbuck arn:minio:sqs::1:webhook --event put --suffix .JPEG
./mc event add myminio/localbuck arn:minio:sqs::1:webhook --event put --suffix .png
./mc event add myminio/localbuck arn:minio:sqs::1:webhook --event put --suffix .PNG
./mc event add myminio/localbuck arn:minio:sqs::1:webhook --event put --suffix .bmp
./mc event add myminio/localbuck arn:minio:sqs::1:webhook --event put --suffix .BMP