2023-02-09 22:18:06 +03:00
|
|
|
{{define "form/streamWS"}}
|
2023-12-13 18:57:36 +03:00
|
|
|
<a-form :colon="false" :label-col="{ md: {span:8} }" :wrapper-col="{ md: {span:14} }">
|
2024-01-09 16:09:22 +03:00
|
|
|
<a-form-item label="PROXY Protocol">
|
2023-02-09 22:18:06 +03:00
|
|
|
<a-switch v-model="inbound.stream.ws.acceptProxyProtocol"></a-switch>
|
|
|
|
</a-form-item>
|
|
|
|
<a-form-item label='{{ i18n "path" }}'>
|
|
|
|
<a-input v-model.trim="inbound.stream.ws.path"></a-input>
|
|
|
|
</a-form-item>
|
2024-01-11 17:41:48 +03:00
|
|
|
<a-form-item label='{{ i18n "pages.inbounds.stream.tcp.requestHeader" }}'>
|
2024-02-17 19:22:23 +03:00
|
|
|
<a-button size="small" @click="inbound.stream.ws.addHeader('Host', '')">+</a-button>
|
2023-12-13 18:57:36 +03:00
|
|
|
</a-form-item>
|
|
|
|
<a-form-item :wrapper-col="{span:24}">
|
|
|
|
<a-input-group compact v-for="(header, index) in inbound.stream.ws.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.ws.removeHeader(index)">-</a-button>
|
2023-02-09 22:18:06 +03:00
|
|
|
</a-input>
|
|
|
|
</a-input-group>
|
|
|
|
</a-form-item>
|
|
|
|
</a-form>
|
2023-12-19 12:36:36 +03:00
|
|
|
{{end}}
|