stream_ws.html 1.3 KB

123456789101112131415161718192021222324252627282930313233
  1. {{define "form/streamWS"}}
  2. <a-form layout="inline">
  3. <a-form-item label="AcceptProxyProtocol">
  4. <a-switch v-model="inbound.stream.ws.acceptProxyProtocol"></a-switch>
  5. </a-form-item>
  6. </a-form>
  7. <a-form layout="inline">
  8. <a-form-item label='{{ i18n "path" }}'>
  9. <a-input v-model.trim="inbound.stream.ws.path"></a-input>
  10. </a-form-item>
  11. <a-form-item label='{{ i18n "pages.inbounds.stream.general.requestHeader" }}'>
  12. <a-row>
  13. <a-button size="small"
  14. @click="inbound.stream.ws.addHeader('Host', '')">
  15. +
  16. </a-button>
  17. </a-row>
  18. <a-input-group v-for="(header, index) in inbound.stream.ws.headers">
  19. <a-input style="width: 50%" v-model.trim="header.name"
  20. addon-before='{{ i18n "pages.inbounds.stream.general.name"}}'></a-input>
  21. <a-input style="width: 50%" v-model.trim="header.value"
  22. addon-before='{{ i18n "pages.inbounds.stream.general.value" }}'>
  23. <template slot="addonAfter">
  24. <a-button size="small"
  25. @click="inbound.stream.ws.removeHeader(index)">
  26. -
  27. </a-button>
  28. </template>
  29. </a-input>
  30. </a-input-group>
  31. </a-form-item>
  32. </a-form>
  33. {{end}}