S3: error with non AWS S3 provider
Author: baby-gnuCreated Dec 18, 2025Updated Dec 18, 2025
Hello.
Some S3 providers require forcePathStyle, in case of self hosting a garageHQ I got the following error:
2025-12-18T13:37:00.094Z error: Error [ERR_TLS_CERT_ALTNAME_INVALID]: Hostname/IP does not match certificate's altnames: Host: s3-codimd.s3.test.example.net. is not in the cert's altnames: DNS:*.test.example.net, DNS:test.example.netAt the same time, the S3 client library is outdated, 0.1.0-preview.2 is 6 years old and does not support the forcePathStyle option. The latest @aws-sdk/client-s3 is 3.954.0.
I think codimd should permit to configure all S3 parameters to adapt configuration for specific providers and use cases.
Regards.
Source: hackmdio/codimd