mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-02-03 09:48:38 +08:00
add domains
This commit is contained in:
parent
b516c9f6ee
commit
90dd3b6534
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user