Adds local HTTPS config for Minio#621
Conversation
While getting my local DocumentCloud stack working, I ran into an upload error with Minio related to calling an unsecured `http` URL from the `https://www.api.documentcloud.org` server. I updated my local app to use `https://` as the minio address, and local uploads worked with our local SSL config.
|
I got this working with some changes in local.yml and .envs/.local/.django in the DocumentCloud repo.
In .envs/.local/.django:
This works 100% on the Django 4 version. It is broken in Django 5 and let me see why this might be |
|
I got this working in Django 5, but it requires adding a few more CORS headers in the nginx conf so uploads work for both private and public. It also required some fixes in the DocumentCloud local processing pipeline which I'll include in the django5_upgrade branch and merge into staging. I'll probably need to adapt the environment variable creation to fix this as well |
…ing and set it back to expected link
|
I got this working fully with the Django 5 upgrade branch. Required updating the Minio image to something more modern (2024) for SSL to work with the upgraded S3 packages. I added two things in this PR, which we will merge when the Django 5 upgrades are ready to merge. One is upping the client max body size, because nginx limits us to small documents otherwise, and the other is a preference thing to keep minio link the same as what it was before but means I don't have to change it on DocumentCloud's side |
While getting my local DocumentCloud stack working, I ran into an upload error with Minio related to calling an unsecured
httpURL from thehttps://www.api.documentcloud.orgserver. I updated my local app to usehttps://as the minio address, and local uploads worked with our local SSL config.This should only impact local development.