external_proxy.html 1.7 KB

12345678910111213141516171819202122232425262728293031
  1. {{define "form/externalProxy"}}
  2. <a-form :colon="false" :label-col="{ md: {span:8} }" :wrapper-col="{ md: {span:14} }">
  3. <a-divider :style="{ margin: '5px 0 0' }"></a-divider>
  4. <a-form-item label="External Proxy">
  5. <a-switch v-model="externalProxy"></a-switch>
  6. <a-button icon="plus" v-if="externalProxy" type="primary" :style="{ marginLeft: '10px' }" size="small"
  7. @click="inbound.stream.externalProxy.push({forceTls: 'same', dest: '', port: 443, remark: ''})"></a-button>
  8. </a-form-item>
  9. <a-input-group :style="{ margin: '8px 0' }" compact v-for="(row, index) in inbound.stream.externalProxy">
  10. <template>
  11. <a-tooltip title="Force TLS">
  12. <a-select v-model="row.forceTls" :style="{ width: '20%', margin: '0px' }"
  13. :dropdown-class-name="themeSwitcher.currentTheme">
  14. <a-select-option value="same">{{ i18n "pages.inbounds.same" }}</a-select-option>
  15. <a-select-option value="none">{{ i18n "none" }}</a-select-option>
  16. <a-select-option value="tls">TLS</a-select-option>
  17. </a-select>
  18. </a-tooltip>
  19. </template>
  20. <a-input :style="{ width: '30%' }" v-model.trim="row.dest" placeholder='{{ i18n "host" }}'></a-input>
  21. <a-tooltip title='{{ i18n "pages.inbounds.port" }}'>
  22. <a-input-number :style="{ width: '15%' }" v-model.number="row.port" min="1" max="65535"></a-input-number>
  23. </a-tooltip>
  24. <a-input :style="{ width: '30%', top: '0' }" v-model.trim="row.remark" placeholder='{{ i18n "remark" }}'>
  25. <template slot="addonAfter">
  26. <a-button icon="minus" size="small" @click="inbound.stream.externalProxy.splice(index, 1)"></a-button>
  27. </template>
  28. </a-input>
  29. </a-input-group>
  30. </a-form>
  31. {{end}}