mirror of
https://github.com/usememos/memos.git
synced 2026-12-02 00:39:17 +01:00
feat(storage): add insecure_skip_tls_verify option for S3
Adds an opt-in toggle to skip TLS certificate verification when connecting to the S3 endpoint, for self-hosted S3-compatible backends (e.g. rustfs, MinIO) that use self-signed certificates. Exposed in both the store/API protos and the storage settings UI, mirroring the existing use_path_style toggle. When enabled, the AWS client uses an HTTP transport with InsecureSkipVerify; default behavior is unchanged. This governs backend-initiated S3 calls (uploads, deletes, thumbnails, and image/document streaming). Video/audio playback redirects the browser to a presigned URL, so that path still requires the browser to trust the cert. Closes #6039
This commit is contained in:
@@ -184,6 +184,10 @@ message InstanceSetting {
|
||||
string region = 4;
|
||||
string bucket = 5;
|
||||
bool use_path_style = 6;
|
||||
// insecure_skip_tls_verify disables TLS certificate verification when connecting
|
||||
// to the S3 endpoint. Only enable this for trusted endpoints that use a self-signed
|
||||
// certificate; it removes protection against man-in-the-middle attacks.
|
||||
bool insecure_skip_tls_verify = 7;
|
||||
}
|
||||
// The S3 config.
|
||||
S3Config s3_config = 4;
|
||||
|
||||
Reference in New Issue
Block a user