Перевести вложения DM на R2 и обновить файловый API

This commit is contained in:
AidarKC
2026-11-15 14:33:52 +03:00
parent 3ecec25fce
commit 70540ff041
23 changed files with 770 additions and 202 deletions
+7 -8
View File
@@ -33,13 +33,12 @@ call.ice.turn.sharedSecret=
# The deployment script copies allowed-email-domains.txt alongside shine-server.jar.
freeRegistration.email.allowedDomainsFile=allowed-email-domains.txt
# R2 public attachment direct uploads.
# These values belong only in the private server application.properties,
# never in Git or the browser bundle.
# R2 public attachment direct uploads (keep credentials in server environment)
r2.publicBucket=shine-files
r2.endpoint=
r2.accessKeyId=
r2.secretAccessKey=
# R2_ENDPOINT=https://<account>.r2.cloudflarestorage.com
# R2_ACCESS_KEY_ID=...
# R2_SECRET_ACCESS_KEY=...
# Environment variables R2_ENDPOINT, R2_ACCESS_KEY_ID and
# R2_SECRET_ACCESS_KEY override the three properties above.
# R2 DM encrypted attachments (publicly downloadable ciphertext, 14-day lifecycle)
r2.dmBucket=shine-dm
# Configure R2 credentials via R2_ENDPOINT, R2_ACCESS_KEY_ID, R2_SECRET_ACCESS_KEY