feat: add reserve proxy url (#479)
Co-authored-by: Adens <dwang@senparc.com> Co-authored-by: fyears <1142836+fyears@users.noreply.github.com>
This commit is contained in:
co-authored by
Adens
fyears
parent
fe572b41c9
commit
220fd07a8b
+13
-2
@@ -976,8 +976,7 @@ export class RemotelySaveSettingTab extends PluginSettingTab {
|
||||
|
||||
dropdown
|
||||
.setValue(
|
||||
`${
|
||||
this.plugin.settings.s3.bypassCorsLocally ? "enable" : "disable"
|
||||
`${this.plugin.settings.s3.bypassCorsLocally ? "enable" : "disable"
|
||||
}`
|
||||
)
|
||||
.onChange(async (value) => {
|
||||
@@ -1056,6 +1055,18 @@ export class RemotelySaveSettingTab extends PluginSettingTab {
|
||||
).open();
|
||||
});
|
||||
});
|
||||
new Setting(s3Div)
|
||||
.setName(t("settings_s3_reverse_proxy_url"))
|
||||
.setDesc(t("settings_s3_reverse_proxy_url_desc"))
|
||||
.addText((text) =>
|
||||
text
|
||||
.setPlaceholder("")
|
||||
.setValue(this.plugin.settings.s3.reverseProxyUrl)
|
||||
.onChange(async (value) => {
|
||||
this.plugin.settings.s3.reverseProxyUrl = value.trim();
|
||||
await this.plugin.saveSettings();
|
||||
})
|
||||
);
|
||||
|
||||
new Setting(s3Div)
|
||||
.setName(t("settings_checkonnectivity"))
|
||||
|
||||
Reference in New Issue
Block a user