mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2025-12-13 17:55:56 +00:00
### Improved
- Now we can configure `forcePathStyle` for bucket synchronisation (#707).
This commit is contained in:
2
src/lib
2
src/lib
Submodule src/lib updated: f21001fcb2...6b6e87f3e5
@@ -209,8 +209,8 @@ export class ModuleMigration extends AbstractModule implements ICoreModule {
|
|||||||
const messageUnrecoverable =
|
const messageUnrecoverable =
|
||||||
unrecoverable.length > 0
|
unrecoverable.length > 0
|
||||||
? $msg("moduleMigration.fix0256.messageUnrecoverable", {
|
? $msg("moduleMigration.fix0256.messageUnrecoverable", {
|
||||||
filesNotRecoverable: unrecoverable.map((e) => `- ${fileInfo(e)}`).join("\n"),
|
filesNotRecoverable: unrecoverable.map((e) => `- ${fileInfo(e)}`).join("\n"),
|
||||||
})
|
})
|
||||||
: "";
|
: "";
|
||||||
|
|
||||||
const message = $msg("moduleMigration.fix0256.message", {
|
const message = $msg("moduleMigration.fix0256.message", {
|
||||||
|
|||||||
@@ -140,6 +140,7 @@ export class ModuleObsidianSettings extends AbstractObsidianModule implements IO
|
|||||||
jwtSub: settings.jwtSub,
|
jwtSub: settings.jwtSub,
|
||||||
useRequestAPI: settings.useRequestAPI,
|
useRequestAPI: settings.useRequestAPI,
|
||||||
bucketPrefix: settings.bucketPrefix,
|
bucketPrefix: settings.bucketPrefix,
|
||||||
|
forcePathStyle: settings.forcePathStyle,
|
||||||
};
|
};
|
||||||
settings.encryptedCouchDBConnection = await this.encryptConfigurationItem(
|
settings.encryptedCouchDBConnection = await this.encryptConfigurationItem(
|
||||||
JSON.stringify(connectionSetting),
|
JSON.stringify(connectionSetting),
|
||||||
|
|||||||
@@ -859,26 +859,7 @@ export class ObsidianLiveSyncSettingTab extends PluginSettingTab {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getMinioJournalSyncClient() {
|
getMinioJournalSyncClient() {
|
||||||
const id = this.plugin.settings.accessKey;
|
return new JournalSyncMinio(this.plugin.settings, this.plugin.simpleStore, this.plugin);
|
||||||
const key = this.plugin.settings.secretKey;
|
|
||||||
const bucket = this.plugin.settings.bucket;
|
|
||||||
const prefix = this.plugin.settings.bucketPrefix;
|
|
||||||
const region = this.plugin.settings.region;
|
|
||||||
const endpoint = this.plugin.settings.endpoint;
|
|
||||||
const useCustomRequestHandler = this.plugin.settings.useCustomRequestHandler;
|
|
||||||
const customHeaders = this.plugin.settings.bucketCustomHeaders;
|
|
||||||
return new JournalSyncMinio(
|
|
||||||
id,
|
|
||||||
key,
|
|
||||||
endpoint,
|
|
||||||
bucket,
|
|
||||||
prefix,
|
|
||||||
this.plugin.simpleStore,
|
|
||||||
this.plugin,
|
|
||||||
useCustomRequestHandler,
|
|
||||||
region,
|
|
||||||
customHeaders
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
async resetRemoteBucket() {
|
async resetRemoteBucket() {
|
||||||
const minioJournal = this.getMinioJournalSyncClient();
|
const minioJournal = this.getMinioJournalSyncClient();
|
||||||
|
|||||||
@@ -320,6 +320,7 @@ The pane also can be launched by \`P2P Replicator\` command from the Command Pal
|
|||||||
syncWarnMinio.addClass("op-warn-info");
|
syncWarnMinio.addClass("op-warn-info");
|
||||||
|
|
||||||
new Setting(paneEl).autoWireText("endpoint", { holdValue: true });
|
new Setting(paneEl).autoWireText("endpoint", { holdValue: true });
|
||||||
|
new Setting(paneEl).autoWireToggle("forcePathStyle", { holdValue: true });
|
||||||
new Setting(paneEl).autoWireText("accessKey", { holdValue: true });
|
new Setting(paneEl).autoWireText("accessKey", { holdValue: true });
|
||||||
|
|
||||||
new Setting(paneEl).autoWireText("secretKey", {
|
new Setting(paneEl).autoWireText("secretKey", {
|
||||||
|
|||||||
Reference in New Issue
Block a user