mirror of
				https://github.com/NginxProxyManager/nginx-proxy-manager.git
				synced 2025-11-04 01:15:14 +00:00 
			
		
		
		
	Use variable with full uri in proxy pass
This commit is contained in:
		@@ -1,10 +1,11 @@
 | 
			
		||||
  location {{ path }} {
 | 
			
		||||
    set              $upstream {{ forward_scheme }}://{{ forward_host }}:{{ forward_port }}{{ forward_path }}$request_uri;
 | 
			
		||||
    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       {{ forward_scheme }}://{{ forward_host }}:{{ forward_port }}{{ forward_path }};
 | 
			
		||||
    proxy_pass       $upstream;
 | 
			
		||||
 | 
			
		||||
    {% if access_list_id > 0 %}
 | 
			
		||||
    {% if access_list.items.length > 0 %}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user