add domains

This commit is contained in:
qiaofeng1227 2023-05-16 16:04:56 +08:00
parent b516c9f6ee
commit 90dd3b6534
2 changed files with 5 additions and 5 deletions

View File

@ -10,7 +10,7 @@ COPY static ./static
COPY requirements.txt main.py ./
RUN apt update
# Install supervisord
# Install supervisords
RUN apt install -y supervisor
COPY config/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
COPY config/cmd.sh /cmd.sh

View File

@ -791,9 +791,9 @@ def app_domain_add(app_id, domain):
"hsts_subdomains": False,
"ssl_forced": False
}
myLogger.info_logger("Create a new proxy")
myLogger.info_logger(json.dumps(data))
requests.post(url, data=json.dumps(data), headers=headers)
response = requests.post(url, data=json.dumps(data), headers=headers)
myLogger.info_logger(response.json())
set_domain(domain, app_id)
return domain
@ -887,7 +887,7 @@ def get_proxy_domain(app_id, domain):
if domain in domain_list:
myLogger.info_logger("find the domain proxy")
proxy_host = proxy
break;
break
return proxy_host