POST to generate Dropshare like S3 uploads somewhat compatible with Twitter clients
555
I wanted a way to generate Dropshare equivalent uploads from Tweetbot/other platforms so quickly threw this together.
AWS_ACCESS_KEY: AWS Access KeyAWS_SECRET_KEY: AWS Secret KeyAWS_BUCKET_NAME: Bucket name to upload toAWS_ENDPOINT: Optional AWS Endpoint DNS nameAWS_PATH_PREFIX: Optional Path prefix to upload toPUBLIC_URL: Optional public URL/CNAME to access the filesURL_SHORT_API: Optional URL of URL Shortening API, only tested with YOURLSURL_SHORT_KEY: Optional URL shortening API keydocker run -d \
--name postshare \
-e AWS_ACCESS_KEY="some-key" \
-e AWS_SECRET_KEY="some-other-key" \
-e AWS_BUCKET_NAME="bucket-name" \
-e AWS_ENDPOINT="s3.amazonaws.com" \
-e AWS_PATH_PREFIX="s/" \
-e PUBLIC_URL="https://my.public.url/" \
-e URL_SHORT_API="https://my.url.shortener/yourls-api.php" \
-e URL_SHORT_KEY="another-other-key" \
mitcdh/postshare
curl -X POST -F "media=@/file/location" https://api.location.com
Or add to Tweetbot or any application which respects similar Custom Media Uploads
/www: Web root80: http web serverContent type
Image
Digest
Size
43.5 MB
Last updated
over 9 years ago
docker pull mitcdh/postshare