stakwork / sphinx-tribes

Backend for sphinx tribes and bounties. The bounty platform pays out in bitcoin. Sign up with Sphinx Chat, complete a bounty, and earn bitcoin! Go to our website for available bounties.
https://community.sphinx.chat/bounties
33 stars 60 forks source link

Setup history bucket to export CSV file of bounties #1050

Closed ecurrencyhodler closed 9 months ago

ecurrencyhodler commented 10 months ago

Create history bucket to export CSV file of bounties. This will be hosted in S3.

kevkevinpal commented 9 months ago

ok I made a bucket sphinx-tribes and a folder in that bucket /metrics and put a sample file in there. The bucket policy is public rn so we'll need to change that

sample link to download the example csv https://sphinx-tribes.s3.amazonaws.com/metrics/addresses.csv

kevkevinpal commented 9 months ago

we might want to use this to only allow our sphinx-tribes server to download csv files from the bucket

we should add the IP of sphinx-tribes prod and staging https://stackoverflow.com/questions/56915684/s3-access-policy-to-allow-download-to-a-specific-ip-address

ecurrencyhodler commented 9 months ago

Thanks Kevin! @elraphty pinging you on this. Not sure if csv export is ready to go yet though cuz there might be some more work we need to do.