Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMHSanaei <ho3ein.sanaei@gmail.com>2023-05-22 17:01:41 +0300
committerMHSanaei <ho3ein.sanaei@gmail.com>2023-05-22 17:01:41 +0300
commit1fa9101b405ad1ba0127317ea4f8a151048b97ee (patch)
treee03a93684953b3473a717a283953464bf368008a /web/html/xui/form
parent3f2e1aede90984d3bafab377509f712e5ce51ec0 (diff)
[feature] add multi domain tls (CDN ready)
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
Diffstat (limited to 'web/html/xui/form')
-rw-r--r--web/html/xui/form/tls_settings.html16
1 files changed, 15 insertions, 1 deletions
diff --git a/web/html/xui/form/tls_settings.html b/web/html/xui/form/tls_settings.html
index d80e820e..31e559da 100644
--- a/web/html/xui/form/tls_settings.html
+++ b/web/html/xui/form/tls_settings.html
@@ -33,7 +33,21 @@
<!-- tls settings -->
<a-form v-if="inbound.tls" layout="inline">
- <a-form-item label='{{ i18n "domainName" }}'>
+ <a-form-item label='Multi Domain'>
+ <a-switch v-model="multiDomain"></a-switch>
+ <a-button v-if="multiDomain" size="small" @click="inbound.stream.tls.settings.domains.push({remark: '', domain: ''})">+</a-button>
+ </a-form-item>
+ <a-form-item v-if="multiDomain" label='Domains'>
+ <a-input-group v-for="(row, index) in inbound.stream.tls.settings.domains">
+ <a-input style="width: 40%" v-model.trim="row.remark" addon-before='{{ i18n "remark" }}'></a-input>
+ <a-input style="width: 60%" v-model.trim="row.domain" addon-before='{{ i18n "host" }}'>
+ <template slot="addonAfter">
+ <a-button size="small" style="margin: 0px" @click="inbound.stream.tls.settings.domains.splice(index, 1)">-</a-button>
+ </template>
+ </a-input>
+ </a-input-group>
+ </a-form-item>
+ <a-form-item v-else label='{{ i18n "domainName" }}'>
<a-input v-model.trim="inbound.stream.tls.server" style="width: 250px"></a-input>
</a-form-item>
<a-form-item label="CipherSuites">