mirror of
				https://github.com/optim-enterprises-bv/Mailu.git
				synced 2025-11-03 19:47:52 +00:00 
			
		
		
		
	Fix front health checking
- Specified seperated /health path in order to allow for healthcheck even if webmail and admin are not seletectd. This also allows healthchecking fom external services like DNS load balancers; - Make curl not to fail on TLS because localhost is not included in the certificates.
This commit is contained in:
		@@ -13,4 +13,4 @@ VOLUME ["/certs"]
 | 
			
		||||
 | 
			
		||||
CMD /start.py
 | 
			
		||||
 | 
			
		||||
HEALTHCHECK CMD curl -f -L http://localhost/ || exit 1
 | 
			
		||||
HEALTHCHECK CMD curl -k -f -L http://localhost/health || exit 1
 | 
			
		||||
 
 | 
			
		||||
@@ -146,6 +146,10 @@ http {
 | 
			
		||||
        proxy_pass_request_body off;
 | 
			
		||||
        proxy_set_header Content-Length "";
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
      location /health {
 | 
			
		||||
        return 204;
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    # Forwarding authentication server
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user