From d486f5d713256d0acac5fa1d9abe7e837ade3e62 Mon Sep 17 00:00:00 2001 From: Samuli Date: Fri, 19 Feb 2016 13:10:33 +0200 Subject: [PATCH] Add - to URL regex --- layersbox | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layersbox b/layersbox index 31a4b0a..02bc6ee 100755 --- a/layersbox +++ b/layersbox @@ -564,7 +564,7 @@ def update_adapter(config, service_directory, service_name): # parse nginx.conf of all services to get a list of all proxied containers #TODO: make sure to only read URLs after a "proxy_pass" with open(join(service_directory, service_name, "nginx.conf")) as f: - for w in re.findall('(https?:\/\/[A-Za-z0-9.]+)',f.read()): + for w in re.findall('(https?:\/\/[A-Za-z0-9.\-]+)',f.read()): proxied_servers.append(w.replace('http://', '')) # now get the IPs of the proxied containers