stream_splithttp.html 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. {{define "form/streamSplitHTTP"}}
  2. <a-form :colon="false" :label-col="{ md: {span:8} }" :wrapper-col="{ md: {span:14} }">
  3. <a-form-item label='{{ i18n "host" }}'>
  4. <a-input v-model.trim="inbound.stream.splithttp.host"></a-input>
  5. </a-form-item>
  6. <a-form-item label='{{ i18n "path" }}'>
  7. <a-input v-model.trim="inbound.stream.splithttp.path"></a-input>
  8. </a-form-item>
  9. <a-form-item label='{{ i18n "pages.inbounds.stream.tcp.requestHeader" }}'>
  10. <a-button icon="plus" size="small" @click="inbound.stream.splithttp.addHeader('host', '')"></a-button>
  11. </a-form-item>
  12. <a-form-item :wrapper-col="{span:24}">
  13. <a-input-group compact v-for="(header, index) in inbound.stream.splithttp.headers">
  14. <a-input style="width: 50%" v-model.trim="header.name" placeholder='{{ i18n "pages.inbounds.stream.general.name"}}'>
  15. <template slot="addonBefore" style="margin: 0;">[[ index+1 ]]</template>
  16. </a-input>
  17. <a-input style="width: 50%" v-model.trim="header.value" placeholder='{{ i18n "pages.inbounds.stream.general.value" }}'>
  18. <a-button slot="addonAfter" size="small" @click="inbound.stream.splithttp.removeHeader(index)">-</a-button>
  19. </a-input>
  20. </a-input-group>
  21. </a-form-item>
  22. <a-form-item label="Max Concurrent Upload">
  23. <a-input v-model.trim="inbound.stream.splithttp.scMaxConcurrentPosts"></a-input>
  24. </a-form-item>
  25. <a-form-item label="Max Upload Size (Byte)">
  26. <a-input v-model.trim="inbound.stream.splithttp.scMaxEachPostBytes"></a-input>
  27. </a-form-item>
  28. <a-form-item label="Min Upload Interval (Ms)">
  29. <a-input v-model.trim="inbound.stream.splithttp.scMinPostsIntervalMs"></a-input>
  30. </a-form-item>
  31. <a-form-item label="Padding Bytes">
  32. <a-input v-model.trim="inbound.stream.splithttp.xPaddingBytes"></a-input>
  33. </a-form-item>
  34. <a-form-item label="No SSE Header">
  35. <a-switch v-model="inbound.stream.splithttp.noSSEHeader"></a-switch>
  36. </a-form-item>
  37. <a-form-item label="Max Connections">
  38. <a-input-number v-model.trim="inbound.stream.splithttp.xmux.maxConnections"></a-input-number>
  39. </a-form-item>
  40. <a-form-item label="Max Concurrency">
  41. <a-input-number v-model.trim="inbound.stream.splithttp.xmux.maxConcurrency"></a-input-number>
  42. </a-form-item>
  43. <a-form-item label="Max Reuse Times">
  44. <a-input-number v-model.trim="inbound.stream.splithttp.xmux.cMaxReuseTimes"></a-input-number>
  45. </a-form-item>
  46. <a-form-item label="Max Lifetime (ms)">
  47. <a-input-number v-model.trim="inbound.stream.splithttp.xmux.cMaxLifetimeMs"></a-input-number>
  48. </a-form-item>
  49. </a-form>
  50. {{end}}