Update manage.py

This commit is contained in:
qiaofeng1227 2023-05-15 17:22:39 +08:00 committed by GitHub
parent 626f8f0c1f
commit eec19cc96e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -856,9 +856,11 @@ def get_proxy_domain(app_id, domain):
'Content-Type': 'application/json'
}
response = requests.get(url, headers=headers)
myLogger.info_logger(response)
myLogger.info_logger(response.json())
for proxy in response.json():
portainer_name = proxy["forward_host"]
myLogger.info_logger(portainer_name)
myLogger.info_logger(proxy["domain_names"])
if customer_name == portainer_name:
if domain in proxy["domain_names"]:
myLogger.info_logger("find the domain proxy")