HTTP based Storage Service
| Endpoint | Description |
| GET /healthz | Check health of service |
| GET /token | Get access token. |
| POST /upload | Upload file, expects data in formData with "file" as field name. |
| GET /file/{fileID}/{fileName} | Retrieve file with given pathname({fileID}/{fileName}). |
| GET /generate-signed-url/{fileID}/{fileName} | Generate Signed URL for file. |
| GET /file-signed/{fileID}/{fileName}?token={token} | Retrieve file using signed URL. |
| DELETE /deleteFile/{fileID}/{fileName} | Delete a file with given pathname({fileID}/{fileName}). |
All the endpoints except /healthz and /token, expect header Authorization Bearer token.
Rate Limiting is provided for upload endpoint whose values can be set in .env file.
Build image-
docker build -t [image_name] .
Run image-
docker run -p [port]:[port] -e DATABASE_URL=[database_url] -e S3_ACCESS_KEY=[s3_access_key] -e S3_SECRET_KEY=[s3_sercert_key] -e S3_ENDPOINT=[s3_endpoint] -e GRAPHQL_ENGINE_BASE_URL=[graphql_engine_base_url] -e GRAPHQL_ENDPOINT=[graphql_endpoint] -e HASURA_GRAPHQL_ADMIN_SECRET=[hasura_graphql_admin_secret] -e JWT_SECRET=[jwt_secret] -e KEY=[encryption_key] -e SIGNED_URL_TTE=[expiry_time_for_signed_url] -e TOKEN_TTE=[expiry_time_for_access_token] -e REQ_PER_MIN=[req_per_min] -e REQ_BURST=[req_burst] [image_name]
or
docker run -p [port]:[port] --env-file [env_file] [image_name]Content type
Image
Digest
sha256:ce1b9bc55…
Size
49 MB
Last updated
about 1 year ago
docker pull nhost/hasura-storage:0.8.0-beta5