|  | @@ -1,16 +1,10 @@
 | 
	
		
			
				|  |  |    location {{ path }} {
 | 
	
		
			
				|  |  | -    set              $targetUri {{ forward_scheme }}://{{ forward_host }}:{{ forward_port }}{{ forward_path }};
 | 
	
		
			
				|  |  | -    {% unless path contains "~" and path contains "(" and path contains ")" %}
 | 
	
		
			
				|  |  | -    if ($request_uri != /){
 | 
	
		
			
				|  |  | -      set            $targetUri $targetUri$request_uri;
 | 
	
		
			
				|  |  | -    }
 | 
	
		
			
				|  |  | -    {% endunless %}
 | 
	
		
			
				|  |  |      proxy_set_header Host $host;
 | 
	
		
			
				|  |  |      proxy_set_header X-Forwarded-Scheme $scheme;
 | 
	
		
			
				|  |  |      proxy_set_header X-Forwarded-Proto  $scheme;
 | 
	
		
			
				|  |  |      proxy_set_header X-Forwarded-For    $remote_addr;
 | 
	
		
			
				|  |  |      proxy_set_header X-Real-IP		$remote_addr;
 | 
	
		
			
				|  |  | -    proxy_pass       $targetUri;
 | 
	
		
			
				|  |  | +    proxy_pass       {{ forward_scheme }}://{{ forward_host }}:{{ forward_port }}{{ forward_path }};
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      {% if access_list_id > 0 %}
 | 
	
		
			
				|  |  |      {% if access_list.items.length > 0 %}
 |