The main site is WordPress. Discourse is in subdirectory.
Main site: main.com
Discourse: main.com/forums
But configuring S3 credentials for DigitalOcean Spaces gives me the above errors. I have a deadline to meet so just got around this by the commands I mentioned earlier. But it would be handy to see someone’s working settings and / or troubleshooting steps to make this work.