Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: integrate tus upload as default upload mechanism #189

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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