3x-ui/web/html/xui/form/stream/stream_ws.html

31 lines
1.3 KiB
HTML
Raw Normal View History

2023-02-09 22:18:06 +03:00
{{define "form/streamWS"}}
<a-form layout="inline">
2023-02-12 16:50:09 +03:00
<a-form-item label="AcceptProxyProtocol">
2023-02-09 22:18:06 +03:00
<a-switch v-model="inbound.stream.ws.acceptProxyProtocol"></a-switch>
</a-form-item>
</a-form>
<a-form layout="inline">
<a-form-item label='{{ i18n "path" }}'>
<a-input v-model.trim="inbound.stream.ws.path"></a-input>
</a-form-item>
<a-form-item label='{{ i18n "pages.inbounds.stream.general.requestHeader" }}'>
<a-row>
2023-05-08 17:44:22 +03:00
<a-button size="small" @click="inbound.stream.ws.addHeader('Host', '')">
2023-02-09 22:18:06 +03:00
+
</a-button>
</a-row>
<a-input-group v-for="(header, index) in inbound.stream.ws.headers">
<a-input style="width: 50%" v-model.trim="header.name"
addon-before='{{ i18n "pages.inbounds.stream.general.name"}}'></a-input>
<a-input style="width: 50%" v-model.trim="header.value"
addon-before='{{ i18n "pages.inbounds.stream.general.value" }}'>
<template slot="addonAfter">
2023-05-08 17:44:22 +03:00
<a-button size="small" @click="inbound.stream.ws.removeHeader(index)">
2023-02-09 22:18:06 +03:00
-
</a-button>
</template>
</a-input>
</a-input-group>
</a-form-item>
</a-form>
{{end}}