| 
									
										
										
										
											2023-02-09 19:18:06 +00:00
										 |  |  | {{define "form/streamWS"}} | 
					
						
							|  |  |  | <a-form layout="inline"> | 
					
						
							| 
									
										
										
										
											2023-02-12 13:50:09 +00:00
										 |  |  |     <a-form-item label="AcceptProxyProtocol"> | 
					
						
							| 
									
										
										
										
											2023-02-09 19:18:06 +00:00
										 |  |  |         <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> | 
					
						
							| 
									
										
										
										
											2023-05-22 19:06:15 +00:00
										 |  |  |     <br> | 
					
						
							|  |  |  |     <a-form-item> | 
					
						
							| 
									
										
										
										
											2023-02-09 19:18:06 +00:00
										 |  |  |         <a-row> | 
					
						
							| 
									
										
										
										
											2023-05-22 19:06:15 +00:00
										 |  |  |             <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> | 
					
						
							| 
									
										
										
										
											2023-02-09 19:18:06 +00:00
										 |  |  |         </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"> | 
					
						
							| 
									
										
										
										
											2023-05-22 19:06:15 +00:00
										 |  |  |                     <a-button type="primary" size="small" style="margin-left: 10px" @click="inbound.stream.ws.removeHeader(index)">-</a-button> | 
					
						
							| 
									
										
										
										
											2023-02-09 19:18:06 +00:00
										 |  |  |                 </template> | 
					
						
							|  |  |  |             </a-input> | 
					
						
							|  |  |  |         </a-input-group> | 
					
						
							|  |  |  |     </a-form-item> | 
					
						
							|  |  |  | </a-form> | 
					
						
							|  |  |  | {{end}} |