mirror of
				https://github.com/immich-app/immich.git
				synced 2025-11-01 02:17:43 +09:00 
			
		
		
		
	| @@ -4,9 +4,12 @@ import sys | ||||
| import requests | ||||
|  | ||||
| port = os.getenv("IMMICH_PORT", 3003) | ||||
| host = os.getenv("IMMICH_HOST", "0.0.0.0") | ||||
|  | ||||
| host = "localhost" if host == "0.0.0.0" else host | ||||
|  | ||||
| try: | ||||
|     response = requests.get(f"http://localhost:{port}/ping", timeout=2) | ||||
|     response = requests.get(f"http://{host}:{port}/ping", timeout=2) | ||||
|     if response.status_code == 200: | ||||
|         sys.exit(0) | ||||
|     sys.exit(1) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user