Web server for static using Amazon S3 compatible API as a backend
STATICD_ALLOWAUTOINDEX
- default:true
whether we should display file index for directoriesSTATICD_ALLOWDELETE
- default:false
, whether we should handle DELETE requestsSTATICD_ALLOWGET
- default:true
, whether we should handle GET requestsSTATICD_ALLOWPUT
- default:false
, whether we should handle PUT requestsSTATICD_DEBUG
- Set log verbosing to debugSTATICD_LISTEN
- default::8080
, address to listen onSTATICD_LISTENMONITORING
- default::8081
, address to listen monitoring dataSTATICD_MAXUPLOADSIZE
- default:1024
, size in MBytes with max allowed file size to uploadSTATICD_S3ACCESSKEY
- S3 access keySTATICD_S3BUCKETNAME
- S3 bucket nameSTATICD_S3ENDPOINT
- S3 endpoint URISTATICD_S3MODE
-<proxy|redirect>
, default:proxy
- file GET method, proxy uses simple proxying, redirect generates presigned URL and sends client to it via HTTP redirectSTATICD_S3SECRETKEY
- S3 secret keySTATICD_S3REGION
- S3 regionSTATICD_S3REDIRECTURLTTL
- default:1800s
, TTL for presigned URL, i.e. how long it would stay validSTATICD_S3USESSL
-<true|false>
, default:true
- should we use SSL for backend or not
staticd supports two operation modes: proxy
and redirect
proxy
mode serves as simple L7 proxy for all requests, which means all the data handled by staticd
and proxied to S3 backend.
redirect
mode sends redirects to S3 endpoint by presigned URL on GET
and PUT
requests, which should make each requests
much faster and safer.
curl -XPUT -T /my/file -L 'http://staticd-instance:8080/my/file'
curl -T /my/file -L 'http://staticd-instance:8080/my/file'