Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/schell/pusher
A server for pushing things to s3.
https://github.com/schell/pusher
Last synced: 17 days ago
JSON representation
A server for pushing things to s3.
- Host: GitHub
- URL: https://github.com/schell/pusher
- Owner: schell
- License: gpl-3.0
- Created: 2014-12-03T06:23:02.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-07-30T00:43:59.000Z (over 9 years ago)
- Last Synced: 2024-05-01T23:30:49.141Z (7 months ago)
- Language: Haskell
- Homepage:
- Size: 750 KB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Pusher
======
Scotty proxy to S3.For generating a self signed certificate to run this server on TLS,
@see https://github.com/yesodweb/wai/tree/master/warp-tlsconfiguration
-------------
You can supply pusher with a config file at startup `pusher myconfig.cfg` with
the following variables:port = 31000
users-file = "/some/initial/users.txt"
log-file = "log.txt"
tmp-dir = "/var/tmp/blah"
server-key = "key.pem"
server-crt = "certificate.pem"
static-dir = "/some/place/to/put/static/files/likeanimage.png"
sign-in-cookie-life = 3600 #in secondsfunctions/routes
----------------### user stuff
GET /users - list users
GET /users.txt - spit out the users.txt
GET /user - show create a new user form
POST /user - create a new user
### uploadingGET /upload - show upload file form
POST /upload - upload a file
GET /upload-zip - show upload tarballed dir form
POST /upload-zip - upload a tarballed dir### copying existing s3 things
GET /copy - copy a single file to another location (supports across buckets)
GET /copy-folder - copy a directory and contents (supports across buckets)### catchall with static dir lookup or 404
GET {static-dir}/*
### misc
GET / - say hello
GET /log - display the log file
GET /auth-check-lvl - check your authorization
GET /auth-check-bucket - check your auth on a given bucket
GET /list - list the contents of a bucketFuture
------
- [ ] cloudfront cache invalidation
- [ ] schedule s3 copies
- [x] upload tar.gz and expand at s3