| 
									
										
										
										
											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> | 
					
						
							|  |  |  |     <a-form-item label='{{ i18n "pages.inbounds.stream.general.requestHeader" }}'> | 
					
						
							|  |  |  |         <a-row> | 
					
						
							| 
									
										
										
										
											2023-05-08 14:44:22 +00:00
										 |  |  |             <a-button size="small" @click="inbound.stream.ws.addHeader('Host', '')"> | 
					
						
							| 
									
										
										
										
											2023-02-09 19:18:06 +00:00
										 |  |  |                 + | 
					
						
							|  |  |  |             </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"> | 
					
						
							| 
									
										
										
										
											2023-05-08 14:44:22 +00:00
										 |  |  |                     <a-button size="small" @click="inbound.stream.ws.removeHeader(index)"> | 
					
						
							| 
									
										
										
										
											2023-02-09 19:18:06 +00:00
										 |  |  |                         - | 
					
						
							|  |  |  |                     </a-button> | 
					
						
							|  |  |  |                 </template> | 
					
						
							|  |  |  |             </a-input> | 
					
						
							|  |  |  |         </a-input-group> | 
					
						
							|  |  |  |     </a-form-item> | 
					
						
							|  |  |  | </a-form> | 
					
						
							|  |  |  | {{end}} |