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
path: root/web/html
diff options
context:
space:
mode:
authormhsanaei <ho3ein.sanaei@gmail.com>2024-06-18 13:49:20 +0300
committermhsanaei <ho3ein.sanaei@gmail.com>2024-06-18 13:49:20 +0300
commit7f2c11220f2d27ac1ad3fdc343b06dd77edd28f1 (patch)
treee7e6b555f6edea2b4848f05e7aa936cb21735b24 /web/html
parent52b02fdef9a499efe99b2d32c78a7936fe34d4d6 (diff)
new - splithttp transport
splithttp inbound splithttp outbound change priority host for ws - httpupgrade (host>>headers)
Diffstat (limited to 'web/html')
-rw-r--r--web/html/xui/form/outbound.html11
-rw-r--r--web/html/xui/form/stream/stream_settings.html6
-rw-r--r--web/html/xui/form/stream/stream_splithttp.html29
-rw-r--r--web/html/xui/inbound_info_modal.html2
4 files changed, 47 insertions, 1 deletions
diff --git a/web/html/xui/form/outbound.html b/web/html/xui/form/outbound.html
index c8b08321..a61f5c44 100644
--- a/web/html/xui/form/outbound.html
+++ b/web/html/xui/form/outbound.html
@@ -204,6 +204,7 @@
<a-select-option value="quic">QUIC</a-select-option>
<a-select-option value="grpc">gRPC</a-select-option>
<a-select-option value="httpupgrade">HTTPUpgrade</a-select-option>
+ <a-select-option value="splithttp">SplitHTTP</a-select-option>
</a-select>
</a-form-item>
<template v-if="outbound.stream.network === 'tcp'">
@@ -325,6 +326,16 @@
<a-input v-model.trim="outbound.stream.httpupgrade.path"></a-input>
</a-form-item>
</template>
+
+ <!-- splithttp -->
+ <template v-if="outbound.stream.network === 'splithttp'">
+ <a-form-item label='{{ i18n "host" }}'>
+ <a-input v-model="outbound.stream.splithttp.host"></a-input>
+ </a-form-item>
+ <a-form-item label='{{ i18n "path" }}'>
+ <a-input v-model.trim="outbound.stream.splithttp.path"></a-input>
+ </a-form-item>
+ </template>
</template>
<!-- tls settings -->
diff --git a/web/html/xui/form/stream/stream_settings.html b/web/html/xui/form/stream/stream_settings.html
index 0d1eaa23..f6fe6f23 100644
--- a/web/html/xui/form/stream/stream_settings.html
+++ b/web/html/xui/form/stream/stream_settings.html
@@ -11,6 +11,7 @@
<a-select-option value="quic">QUIC</a-select-option>
<a-select-option value="grpc">gRPC</a-select-option>
<a-select-option value="httpupgrade">HTTPUpgrade</a-select-option>
+ <a-select-option value="splithttp">SplitHTTP</a-select-option>
</a-select>
</a-form-item>
</a-form>
@@ -50,6 +51,11 @@
{{template "form/streamHTTPUpgrade"}}
</template>
+<!-- splithttp -->
+<template v-if="inbound.stream.network === 'splithttp'">
+ {{template "form/streamSplitHTTP"}}
+</template>
+
<!-- sockopt -->
<template>
{{template "form/streamSockopt"}}
diff --git a/web/html/xui/form/stream/stream_splithttp.html b/web/html/xui/form/stream/stream_splithttp.html
new file mode 100644
index 00000000..e7a38d5e
--- /dev/null
+++ b/web/html/xui/form/stream/stream_splithttp.html
@@ -0,0 +1,29 @@
+{{define "form/streamSplitHTTP"}}
+<a-form :colon="false" :label-col="{ md: {span:8} }" :wrapper-col="{ md: {span:14} }">
+ <a-form-item label='{{ i18n "host" }}'>
+ <a-input v-model.trim="inbound.stream.splithttp.host"></a-input>
+ </a-form-item>
+ <a-form-item label='{{ i18n "path" }}'>
+ <a-input v-model.trim="inbound.stream.splithttp.path"></a-input>
+ </a-form-item>
+ <a-form-item label='{{ i18n "pages.inbounds.stream.tcp.requestHeader" }}'>
+ <a-button icon="plus" size="small" @click="inbound.stream.splithttp.addHeader('host', '')"></a-button>
+ </a-form-item>
+ <a-form-item :wrapper-col="{span:24}">
+ <a-input-group compact v-for="(header, index) in inbound.stream.splithttp.headers">
+ <a-input style="width: 50%" v-model.trim="header.name" placeholder='{{ i18n "pages.inbounds.stream.general.name"}}'>
+ <template slot="addonBefore" style="margin: 0;">[[ index+1 ]]</template>
+ </a-input>
+ <a-input style="width: 50%" v-model.trim="header.value" placeholder='{{ i18n "pages.inbounds.stream.general.value" }}'>
+ <a-button slot="addonAfter" size="small" @click="inbound.stream.splithttp.removeHeader(index)">-</a-button>
+ </a-input>
+ </a-input-group>
+ </a-form-item>
+ <a-form-item label="max Upload Size">
+ <a-input-number v-model="inbound.stream.splithttp.maxUploadSize" :min="0"></a-input-number>
+ </a-form-item>
+ <a-form-item label="max Concurrent Uploads">
+ <a-input-number v-model="inbound.stream.splithttp.maxConcurrentUploads" :min="0"></a-input-number>
+ </a-form-item>
+</a-form>
+{{end}}
diff --git a/web/html/xui/inbound_info_modal.html b/web/html/xui/inbound_info_modal.html
index b15f1830..a6f34001 100644
--- a/web/html/xui/inbound_info_modal.html
+++ b/web/html/xui/inbound_info_modal.html
@@ -34,7 +34,7 @@
<a-tag color="green">[[ inbound.network ]]</a-tag>
</td>
</tr>
- <template v-if="inbound.isTcp || inbound.isWs || inbound.isH2 || inbound.isHttpupgrade ">
+ <template v-if="inbound.isTcp || inbound.isWs || inbound.isH2 || inbound.isHttpupgrade || inbound.isSplithttp">
<tr>
<td>{{ i18n "host" }}</td>
<td v-if="inbound.host">