Skip to content

Commit

Permalink
feat: integrate tus upload as default upload mechanism
Browse files Browse the repository at this point in the history
  • Loading branch information
fenos committed Dec 11, 2023
1 parent d4d06b2 commit 4f45a49
Show file tree
Hide file tree
Showing 12 changed files with 813 additions and 58 deletions.
4 changes: 2 additions & 2 deletions infra/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ services:
GLOBAL_S3_BUCKET: supa-storage-testing # name of s3 bucket where you want to store objects
PGRST_JWT_SECRET: super-secret-jwt-token-with-at-least-32-characters-long
DATABASE_URL: postgres://postgres:postgres@db:5432/postgres
PGOPTIONS: "-c search_path=storage"
AWS_ACCESS_KEY_ID: replace-with-your-aws-key
AWS_SECRET_ACCESS_KEY: replace-with-your-aws-secret
FILE_SIZE_LIMIT: 52428800
STORAGE_BACKEND: file
FILE_STORAGE_BACKEND_PATH: /tmp/storage
ENABLE_IMAGE_TRANSFORMATION: "true"
IMGPROXY_URL: http://imgproxy:8080
DEBUG: "knex:*"
TUS_URL_PATH: /storage/v1/upload/resumable
# DEBUG: "knex:*"
volumes:
- assets-volume:/tmp/storage
healthcheck:
Expand Down
5 changes: 5 additions & 0 deletions infra/kong/kong.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ services:
- /storage/v1/
plugins:
- name: cors
- name: request-transformer
config:
add:
headers:
- 'Forwarded: host=localhost:8000;proto=http'
consumers:
- username: 'private-key'
keyauth_credentials:
Expand Down
2 changes: 1 addition & 1 deletion infra/storage/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
FROM supabase/storage-api:v0.35.1
FROM supabase/storage-api:v0.43.12

RUN apk add curl --no-cache
Loading

0 comments on commit 4f45a49

Please sign in to comment.