stream_ws.html 1.3 KB

12345678910111213141516171819202122232425262728293031
  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" @click="inbound.stream.ws.addHeader('Host', '')">
  14. +
  15. </a-button>
  16. </a-row>
  17. <a-input-group v-for="(header, index) in inbound.stream.ws.headers">
  18. <a-input style="width: 50%" v-model.trim="header.name"
  19. addon-before='{{ i18n "pages.inbounds.stream.general.name"}}'></a-input>
  20. <a-input style="width: 50%" v-model.trim="header.value"
  21. addon-before='{{ i18n "pages.inbounds.stream.general.value" }}'>
  22. <template slot="addonAfter">
  23. <a-button size="small" @click="inbound.stream.ws.removeHeader(index)">
  24. -
  25. </a-button>
  26. </template>
  27. </a-input>
  28. </a-input-group>
  29. </a-form-item>
  30. </a-form>
  31. {{end}}