nginx token type error edit
This commit is contained in:
parent
9ba5067ae6
commit
06f3bda574
2 changed files with 3 additions and 3 deletions
|
@ -10,7 +10,7 @@ COPY static ./static
|
|||
COPY requirements.txt main.py database.sqlite ./
|
||||
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
|
||||
|
|
|
@ -1113,9 +1113,9 @@ def check_real_domain(domain):
|
|||
def get_token():
|
||||
url = const.NGINX_URL+"/api/tokens"
|
||||
headers = {'Content-type': 'application/json'}
|
||||
password = db.AppSearchUsers("nginx").json()["password"]
|
||||
password = db.AppSearchUsers("nginx").get("password")
|
||||
|
||||
myLogger.info_logger(password)
|
||||
myLogger.info_logger("token_password: " + password)
|
||||
param = {
|
||||
"identity": "help@websoft9.com",
|
||||
"scope": "user",
|
||||
|
|
Loading…
Add table
Reference in a new issue