stream_ws.html 1.3 KB

1234567891011121314151617181920212223242526272829
  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. <br>
  12. <a-form-item>
  13. <a-row>
  14. <span>{{ i18n "pages.inbounds.stream.general.requestHeader" }}:</span>
  15. <a-button type="primary" size="small" style="margin-left: 10px" @click="inbound.stream.ws.addHeader('Host', '')">+</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 type="primary" size="small" style="margin-left: 10px" @click="inbound.stream.ws.removeHeader(index)">-</a-button>
  24. </template>
  25. </a-input>
  26. </a-input-group>
  27. </a-form-item>
  28. </a-form>
  29. {{end}}