mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-22 15:40:22 +00:00
Update manage.py
This commit is contained in:
parent
626f8f0c1f
commit
eec19cc96e
1 changed files with 3 additions and 1 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue