Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion layersbox
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down