stream_ws.html 1.3 KB

1234567891011121314151617181920212223242526
  1. {{define "form/streamWS"}}
  2. <a-form :colon="false" :label-col="{ md: {span:8} }" :wrapper-col="{ md: {span:14} }">
  3. <a-form-item label="Proxy Protocol">
  4. <a-switch v-model="inbound.stream.ws.acceptProxyProtocol"></a-switch>
  5. </a-form-item>
  6. <a-form-item label='{{ i18n "host" }}'>
  7. <a-input v-model.trim="inbound.stream.ws.host"></a-input>
  8. </a-form-item>
  9. <a-form-item label='{{ i18n "path" }}'>
  10. <a-input v-model.trim="inbound.stream.ws.path"></a-input>
  11. </a-form-item>
  12. <a-form-item label='{{ i18n "pages.inbounds.stream.tcp.requestHeader" }}'>
  13. <a-button icon="plus" size="small" @click="inbound.stream.ws.addHeader('host', '')"></a-button>
  14. </a-form-item>
  15. <a-form-item :wrapper-col="{span:24}">
  16. <a-input-group compact v-for="(header, index) in inbound.stream.ws.headers">
  17. <a-input style="width: 50%" v-model.trim="header.name" placeholder='{{ i18n "pages.inbounds.stream.general.name"}}'>
  18. <template slot="addonBefore" style="margin: 0;">[[ index+1 ]]</template>
  19. </a-input>
  20. <a-input style="width: 50%" v-model.trim="header.value" placeholder='{{ i18n "pages.inbounds.stream.general.value" }}'>
  21. <a-button icon="minus" slot="addonAfter" size="small" @click="inbound.stream.ws.removeHeader(index)"></a-button>
  22. </a-input>
  23. </a-input-group>
  24. </a-form-item>
  25. </a-form>
  26. {{end}}