From 98705b90a2f9da8ef3d5b97008ccdf163c1b26ea Mon Sep 17 00:00:00 2001 From: qiaofeng1227 <76487013@qq.com> Date: Fri, 26 May 2023 12:01:52 +0800 Subject: [PATCH] appmanage auth --- appmanage/Dockerfile | 2 +- appmanage/api/service/manage.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/appmanage/Dockerfile b/appmanage/Dockerfile index d6cf741e..ef28a3a5 100644 --- a/appmanage/Dockerfile +++ b/appmanage/Dockerfile @@ -10,7 +10,7 @@ COPY static ./static COPY requirements.txt main.py ./ RUN apt update -# Install supervisords +# Install supervisord RUN apt install -y supervisor COPY config/supervisord.conf /etc/supervisor/conf.d/supervisord.conf COPY config/cmd.sh /cmd.sh diff --git a/appmanage/api/service/manage.py b/appmanage/api/service/manage.py index 881757e5..d47b10dd 100644 --- a/appmanage/api/service/manage.py +++ b/appmanage/api/service/manage.py @@ -960,7 +960,7 @@ def check_real_domain(domain): def get_token(): url = 'http://172.17.0.1:9092/api/tokens' headers = {'Content-type': 'application/json'} - cmd = "cat /usr/share/cockpit/appstore/config.json | jq -r '.NGINXPROXYMANAGER_PASSWORD'" + cmd = "cat /usr/share/cockpit/appstore/config.json | jq -r '.NGINXPROXYMANAGER.NGINXPROXYMANAGER_PASSWORD'" password = shell_execute.execute_command_output_all(cmd)["result"].rstrip('\n') myLogger.info_logger(password) param = {