mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-22 07:30:24 +00:00
token refresh
This commit is contained in:
parent
06f3bda574
commit
4540a7b546
1 changed files with 1 additions and 2 deletions
|
@ -45,8 +45,6 @@ scheduler = BackgroundScheduler()
|
|||
scheduler.add_job(auto_update, 'cron', hour=1)
|
||||
scheduler.start()
|
||||
|
||||
nginx_token = None
|
||||
|
||||
# 获取github文件内容
|
||||
def get_github_content(repo, path):
|
||||
url = 'https://websoft9.github.io/{repo}/{path}'
|
||||
|
@ -1111,6 +1109,7 @@ def check_real_domain(domain):
|
|||
|
||||
|
||||
def get_token():
|
||||
|
||||
url = const.NGINX_URL+"/api/tokens"
|
||||
headers = {'Content-type': 'application/json'}
|
||||
password = db.AppSearchUsers("nginx").get("password")
|
||||
|
|
Loading…
Reference in a new issue