mirror of
				https://github.com/blakeblackshear/frigate.git
				synced 2025-10-27 10:52:11 +01:00 
			
		
		
		
	Include leading slash of path in rewrite rule for frigate_api in nginx.conf (#10888)
Noticed the healthcheck curl requests were failing as they were routed to http://127.0.0.1:5001version instead of http://127.0.0.1:5001/version
This commit is contained in:
		
							parent
							
								
									3d43c5e811
								
							
						
					
					
						commit
						5970aead0d
					
				@ -238,14 +238,14 @@ http {
 | 
			
		||||
 | 
			
		||||
            location /api/stats {
 | 
			
		||||
                access_log off;
 | 
			
		||||
                rewrite ^/api/(.*)$ $1 break;
 | 
			
		||||
                rewrite ^/api(/.*)$ $1 break;
 | 
			
		||||
                proxy_pass http://frigate_api;
 | 
			
		||||
                include proxy.conf;
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            location /api/version {
 | 
			
		||||
                access_log off;
 | 
			
		||||
                rewrite ^/api/(.*)$ $1 break;
 | 
			
		||||
                rewrite ^/api(/.*)$ $1 break;
 | 
			
		||||
                proxy_pass http://frigate_api;
 | 
			
		||||
                include proxy.conf;
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user