stream_splithttp.html 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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"
  15. placeholder='{{ i18n "pages.inbounds.stream.general.name"}}'>
  16. <template slot="addonBefore" style="margin: 0;">[[ index+1 ]]</template>
  17. </a-input>
  18. <a-input style="width: 50%" v-model.trim="header.value"
  19. placeholder='{{ i18n "pages.inbounds.stream.general.value" }}'>
  20. <a-button slot="addonAfter" size="small"
  21. @click="inbound.stream.splithttp.removeHeader(index)">-</a-button>
  22. </a-input>
  23. </a-input-group>
  24. </a-form-item>
  25. <a-form-item label='Mode'>
  26. <a-select v-model="inbound.stream.splithttp.mode" style="width: 50%"
  27. :dropdown-class-name="themeSwitcher.currentTheme">
  28. <a-select-option v-for="key in MODE_OPTION" :value="key">[[ key ]]</a-select-option>
  29. </a-select>
  30. </a-form-item>
  31. <a-form-item label="Max Concurrent Upload">
  32. <a-input v-model.trim="inbound.stream.splithttp.scMaxConcurrentPosts"></a-input>
  33. </a-form-item>
  34. <a-form-item label="Max Upload Size (Byte)">
  35. <a-input v-model.trim="inbound.stream.splithttp.scMaxEachPostBytes"></a-input>
  36. </a-form-item>
  37. <a-form-item label="Min Upload Interval (Ms)">
  38. <a-input v-model.trim="inbound.stream.splithttp.scMinPostsIntervalMs"></a-input>
  39. </a-form-item>
  40. <a-form-item label="Padding Bytes">
  41. <a-input v-model.trim="inbound.stream.splithttp.xPaddingBytes"></a-input>
  42. </a-form-item>
  43. <a-form-item label="No SSE Header">
  44. <a-switch v-model="inbound.stream.splithttp.noSSEHeader"></a-switch>
  45. </a-form-item>
  46. <a-form-item label="Max Concurrency" v-if="!inbound.stream.splithttp.xmux.maxConnections">
  47. <a-input v-model="inbound.stream.splithttp.xmux.maxConcurrency"></a-input>
  48. </a-form-item>
  49. <a-form-item label="Max Connections" v-if="!inbound.stream.splithttp.xmux.maxConcurrency">
  50. <a-input v-model="inbound.stream.splithttp.xmux.maxConnections"></a-input>
  51. </a-form-item>
  52. <a-form-item label="Max Reuse Times">
  53. <a-input v-model="inbound.stream.splithttp.xmux.cMaxReuseTimes"></a-input>
  54. </a-form-item>
  55. <a-form-item label="Max Lifetime (ms)">
  56. <a-input v-model="inbound.stream.splithttp.xmux.cMaxLifetimeMs"></a-input>
  57. </a-form-item>
  58. </a-form>
  59. {{end}}