mirror of
				https://github.com/MHSanaei/3x-ui.git
				synced 2025-10-27 18:32:52 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			29 lines
		
	
	
		
			No EOL
		
	
	
		
			1.3 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			No EOL
		
	
	
		
			1.3 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
| {{define "form/streamWS"}}
 | |
| <a-form layout="inline">
 | |
|     <a-form-item label="AcceptProxyProtocol">
 | |
|         <a-switch v-model="inbound.stream.ws.acceptProxyProtocol"></a-switch>
 | |
|     </a-form-item>
 | |
| </a-form>
 | |
| <a-form layout="inline">
 | |
|     <a-form-item label='{{ i18n "path" }}'>
 | |
|         <a-input v-model.trim="inbound.stream.ws.path"></a-input>
 | |
|     </a-form-item>
 | |
|     <br>
 | |
|     <a-form-item>
 | |
|         <a-row>
 | |
|             <span>{{ i18n "pages.inbounds.stream.general.requestHeader" }}:</span>
 | |
|             <a-button type="primary" size="small" style="margin-left: 10px" @click="inbound.stream.ws.addHeader('Host', '')">+</a-button>
 | |
|         </a-row>
 | |
|         <a-input-group v-for="(header, index) in inbound.stream.ws.headers">
 | |
|             <a-input style="width: 50%" v-model.trim="header.name"
 | |
|                      addon-before='{{ i18n "pages.inbounds.stream.general.name"}}'></a-input>
 | |
|             <a-input style="width: 50%" v-model.trim="header.value"
 | |
|                      addon-before='{{ i18n "pages.inbounds.stream.general.value" }}'>
 | |
|                 <template slot="addonAfter">
 | |
|                     <a-button type="primary" size="small" style="margin-left: 10px" @click="inbound.stream.ws.removeHeader(index)">-</a-button>
 | |
|                 </template>
 | |
|             </a-input>
 | |
|         </a-input-group>
 | |
|     </a-form-item>
 | |
| </a-form>
 | |
| {{end}} | 
