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:
Adens Wang
2024-04-05 10:36:58 +08:00
committed by GitHub
co-authored by Adens fyears
parent fe572b41c9
commit 220fd07a8b
6 changed files with 38 additions and 17 deletions
+13 -2
View File
@@ -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"))