Easy file sharing with S3 and Dropshare/ShareX
What we’re going to be doing
- Setting up a subdomain
- Setting up Amazon S3
- Setting up:
- Preliminary Setup
- ShareX (Windows)
- DropShare (Mac)
Setting up Amazon S3
If you already have an S3 Bucket created/setup, skip this section.
- Login to to your AWS Management Console.
- Go to Amazon S3.
- Create a new Bucket and take a note of the bucket name.
- Open bucket properties (in the top right) and add a bucket policy:
{
"Version":"2012-10-17",
"Statement":[
{
"Sid":"AddPerm",
"Effect":"Allow",
"Principal": "*",
"Action":["s3:GetObject"],
"Resource":["arn:aws:s3:::YOUR-BUCKET-NAME-HERE/*"]
}
]
}
- This bucket policy will make all of your uploads public. Now you can move on to setting up your subdomain.
Setting up a subdomain
- Login to your domain registrar, I use Gandi.
- Navigate to your equivalent “My Account” page.
- On Gandi, you have to click on your domain, and on the following page click “Edit the Zone”.
- Create a new zone.
- Create a CNAME record:
6. Set the TTL to default.
7. Set the name to the subdomain you want, for instance
i
, in my case, fori.hugo.sx
8. Set the value toyour-bucket-name.your-region.amazonaws.com.
, for instance,my-bucket.s3-ap-southeast-2.amazonaws.com.
- Hit save. You’ll have to wait somewhere in the range of 24 hours for the DNS populate.
Uploading to Amazon S3
Preliminary setup
- Go to your AWS Console, click on your name in the top right and then Security Credentials.
- You should be prompted to use IAM users, click on IAM users.
- Create a new user and give it a relevant name, e.g. dropshare-mac or sharex-windows, and hit enter.
- Copy the Access Key ID and Secret Access Key somewhere, you’ll need them for the next step.
Dropshare (Mac)
Dropshare costs 20.00 USD, which is quite reasonable for what it does. However, if you’re looking for something slightly cheaper and with arguably more features, check out Dropzone 3.
- Once you’ve downloaded Dropshare, open up the preferences and create a new Amazon S3 connection:
- Fill out the required fields, most a pretty self explanatory.
- When filling out the custom domain, don’t prefix it with
http://
and don’t add/
as a suffix. - If you want to upload to a subfolder, you’ll want to add that in with the bucket name.
- Enjoy!
ShareX (Windows)
- Download ShareX.
- Open up Destinations from the list on the side.
- Click on Amazon S3 under Image Upload.
- Enter the_Access Key_ and Secret Key, you should end up with something like this:
- Now set Amazon S3 as your upload destination:
On the web
Week Notes W50
Sat Dec 14 2024 by Joel's Log FilesWhy I Think Nextcloud Is Shit
Sat Dec 14 2024 by Kev QuirkOSC-52
Wed Nov 27 2024 by nerdypepper's μblogOn Founding the Swiss Laravel Association
Fri Nov 15 2024 by stefanzweifel.devCompiling Lisp to Bytecode and Running It
Tue Oct 15 2024 by Andrew Healey's Blog
Generated by openring