Skip to content

Commit

Permalink
feat: add s3 storage driver
Browse files Browse the repository at this point in the history
  • Loading branch information
pkarolyi committed May 3, 2024
1 parent a5cf7c4 commit 6126d12
Show file tree
Hide file tree
Showing 28 changed files with 2,524 additions and 1,161 deletions.
15 changes: 15 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# s3 or local
STORAGE_PROVIDER=

# required if provider is local
LOCAL_DIRECTORY=

# required if provider is s3
S3_BUCKET=
S3_ACCESS_KEY_ID=
S3_SECRET_ACCESS_KEY=

# optional if provider is s3
S3_REGION=
S3_SESSION_TOKEN=
S3_FORCE_PATH_STYLE=
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v20.12
v20.12.2
1 change: 1 addition & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{ "plugins": ["prettier-plugin-organize-imports"] }
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ node dist/main

## Notes

The `1.0.0` release is working and is compatible with the latest turborepo release (`1.12.4` tested).
The `1.1.0` release is working and is compatible with the latest turborepo releases. Check the integration tests on the latest [workflow run](https://github.com/pkarolyi/garden-snail/actions/).

This version **does not include any authorization or rate limiting functionality**. It is intended for internal deployments in organizations with external access controls.

Expand All @@ -31,4 +31,4 @@ These are the things I will be working on in the coming weeks in no particular o
- Authorization
- Rate limiting
- More providers
- S3
- Based on requests
65 changes: 35 additions & 30 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "garden-snail",
"version": "1.0.0",
"version": "1.1.0",
"description": "Turborepo remote cache server",
"author": "Peter Karolyi <[email protected]>",
"private": true,
Expand All @@ -21,38 +21,43 @@
"test:e2e:watch": "vitest -c ./test/vitest.config.e2e.ts"
},
"dependencies": {
"@nestjs/common": "^10.3.8",
"@nestjs/core": "^10.3.8",
"@nestjs/platform-fastify": "^10.3.8",
"fastify": "^4.26.2",
"reflect-metadata": "^0.2.2",
"rxjs": "^7.8.1"
"@aws-sdk/client-s3": "3.567.0",
"@aws-sdk/lib-storage": "3.567.0",
"@nestjs/common": "10.3.8",
"@nestjs/config": "3.2.2",
"@nestjs/core": "10.3.8",
"@nestjs/platform-fastify": "10.3.8",
"fastify": "4.26.2",
"reflect-metadata": "0.2.2",
"rxjs": "7.8.1",
"zod": "3.23.5"
},
"devDependencies": {
"@nestjs/cli": "^10.3.2",
"@nestjs/schematics": "^10.1.1",
"@nestjs/testing": "^10.3.8",
"@swc/cli": "^0.3.12",
"@swc/core": "^1.5.0",
"@types/node": "^20.3.1",
"@types/supertest": "^6.0.0",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"@vitest/coverage-v8": "^1.5.1",
"eslint": "^8.42.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.0",
"prettier": "^3.0.0",
"source-map-support": "^0.5.21",
"ts-loader": "^9.4.3",
"ts-node": "^10.9.1",
"tsconfig-paths": "^4.2.0",
"typescript": "^5.1.3",
"unplugin-swc": "^1.4.5",
"vitest": "^1.5.1"
"@nestjs/cli": "10.3.2",
"@nestjs/schematics": "10.1.1",
"@nestjs/testing": "10.3.8",
"@swc/cli": "0.3.12",
"@swc/core": "1.4.17",
"@types/node": "20.12.8",
"@types/supertest": "6.0.2",
"@typescript-eslint/eslint-plugin": "6.21.0",
"@typescript-eslint/parser": "6.21.0",
"@vitest/coverage-v8": "1.5.3",
"eslint": "8.57.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-prettier": "5.1.3",
"prettier": "3.2.5",
"prettier-plugin-organize-imports": "3.2.4",
"source-map-support": "0.5.21",
"ts-loader": "9.5.1",
"ts-node": "10.9.2",
"tsconfig-paths": "4.2.0",
"typescript": "5.4.5",
"unplugin-swc": "1.4.5",
"vitest": "1.5.3"
},
"packageManager": "[email protected].2+sha1.2a34aeb80bf8e8435815d14f620ec4ba0eff1604",
"packageManager": "[email protected].6",
"engines": {
"node": "^20.12"
"node": "20.12.2"
}
}
Loading

0 comments on commit 6126d12

Please sign in to comment.