Skip to content

Commit d928133

Browse files
committed
feat: integrate tus upload as default upload mechanism
1 parent d4d06b2 commit d928133

File tree

12 files changed

+873
-66
lines changed

12 files changed

+873
-66
lines changed

infra/docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ services:
3030
GLOBAL_S3_BUCKET: supa-storage-testing # name of s3 bucket where you want to store objects
3131
PGRST_JWT_SECRET: super-secret-jwt-token-with-at-least-32-characters-long
3232
DATABASE_URL: postgres://postgres:postgres@db:5432/postgres
33-
PGOPTIONS: "-c search_path=storage"
3433
AWS_ACCESS_KEY_ID: replace-with-your-aws-key
3534
AWS_SECRET_ACCESS_KEY: replace-with-your-aws-secret
3635
FILE_SIZE_LIMIT: 52428800
3736
STORAGE_BACKEND: file
3837
FILE_STORAGE_BACKEND_PATH: /tmp/storage
3938
ENABLE_IMAGE_TRANSFORMATION: "true"
4039
IMGPROXY_URL: http://imgproxy:8080
41-
DEBUG: "knex:*"
40+
TUS_URL_PATH: /storage/v1/upload/resumable
41+
# DEBUG: "knex:*"
4242
volumes:
4343
- assets-volume:/tmp/storage
4444
healthcheck:

infra/kong/kong.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ services:
2323
- /storage/v1/
2424
plugins:
2525
- name: cors
26+
- name: request-transformer
27+
config:
28+
add:
29+
headers:
30+
- 'Forwarded: host=localhost:8000;proto=http'
2631
consumers:
2732
- username: 'private-key'
2833
keyauth_credentials:

infra/storage/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
FROM supabase/storage-api:v0.35.1
1+
FROM supabase/storage-api:v0.43.12
22

33
RUN apk add curl --no-cache

0 commit comments

Comments
 (0)