stream_splithttp.html 1.9 KB

1234567891011121314151617181920212223242526272829303132333435
  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-number v-model="inbound.stream.splithttp.scMaxConcurrentPosts" :min="0"></a-input-number>
  24. </a-form-item>
  25. <a-form-item label="Max Upload Size (Byte)">
  26. <a-input-number v-model="inbound.stream.splithttp.scMaxEachPostBytes" :min="0"></a-input-number>
  27. </a-form-item>
  28. <a-form-item label="Min Upload Interval (Ms)">
  29. <a-input-number v-model="inbound.stream.splithttp.scMinPostsIntervalMs" :min="0"></a-input-number>
  30. </a-form-item>
  31. <a-form-item label="No SSE Header">
  32. <a-switch v-model="inbound.stream.splithttp.noSSEHeader"></a-switch>
  33. </a-form-item>
  34. </a-form>
  35. {{end}}