feat: load oss media config from sys config
This commit is contained in:
@@ -114,7 +114,7 @@ ENV POSTGRES_DSN='postgresql://postgres:postgres@localhost:5432/tinode?sslmode=d
|
||||
ENV PLUGIN_PYTHON_CHAT_BOT_ENABLED=false
|
||||
|
||||
# Default handler for large files
|
||||
ENV MEDIA_HANDLER=fs
|
||||
ENV MEDIA_HANDLER=sys_config
|
||||
|
||||
# Whitelisted domains for file and S3 large media handler.
|
||||
ENV FS_CORS_ORIGINS='["*"]'
|
||||
|
||||
@@ -91,7 +91,7 @@ ENV ADMIN_INTERNAL_API_TIMEOUT_MS=3000
|
||||
# DB routing resolves to the same tinode DB for the seeded "default" tenant.
|
||||
ENV TENANT_REGISTRY_DB=hotgo
|
||||
|
||||
ENV MEDIA_HANDLER=fs
|
||||
ENV MEDIA_HANDLER=sys_config
|
||||
ENV FS_CORS_ORIGINS='["*"]'
|
||||
ENV AWS_CORS_ORIGINS='["*"]'
|
||||
ENV SMTP_HOST_URL='http://localhost:6060'
|
||||
|
||||
@@ -34,6 +34,9 @@
|
||||
"presign_ttl": 3600,
|
||||
"cache_control": "max-age=86400",
|
||||
"cors_origins": $AWS_CORS_ORIGINS
|
||||
},
|
||||
"oss": {
|
||||
"use_sys_config": true
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user