Sì, sembra esserci un’incompatibilità con R2.
Non testato, ma puoi provare quanto segue:
Le variabili d’ambiente sono impostate nel file app.yml del tuo container, sotto il blocco env — lo stesso posto in cui hai già elementi come DISCOURSE_S3_ACCESS_KEY_ID. Aggiungi semplicemente le due variabili lì:
env:
LANG: en_US.UTF-8
# ... le tue variabili esistenti ...
DISCOURSE_S3_BUCKET: your-r2-bucket
DISCOURSE_S3_ACCESS_KEY_ID: ...
DISCOURSE_S3_SECRET_ACCESS_KEY: ...
DISCOURSE_S3_ENDPOINT: https://<account>.r2.cloudflarestorage.com
# Fix per l'incompatibilità del checksum di Cloudflare R2 con aws-sdk-s3
AWS_REQUEST_CHECKSUM_CALCULATION: when_required
AWS_RESPONSE_CHECKSUM_VALIDATION: when_required
Quindi ricompila il container:
./launcher rebuild app