mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-22 07:30:24 +00:00
config.json
This commit is contained in:
parent
fd33c66140
commit
abdbde87ec
2 changed files with 2 additions and 2 deletions
|
@ -10,7 +10,7 @@ COPY static ./static
|
||||||
COPY requirements.txt main.py ./
|
COPY requirements.txt main.py ./
|
||||||
RUN apt update
|
RUN apt update
|
||||||
|
|
||||||
# Install supervisord
|
# Install supervisords
|
||||||
RUN apt install -y supervisor
|
RUN apt install -y supervisor
|
||||||
COPY config/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
COPY config/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
||||||
COPY config/cmd.sh /cmd.sh
|
COPY config/cmd.sh /cmd.sh
|
||||||
|
|
|
@ -960,7 +960,7 @@ def check_real_domain(domain):
|
||||||
def get_token():
|
def get_token():
|
||||||
url = 'http://172.17.0.1:9092/api/tokens'
|
url = 'http://172.17.0.1:9092/api/tokens'
|
||||||
headers = {'Content-type': 'application/json'}
|
headers = {'Content-type': 'application/json'}
|
||||||
cmd = "cat /usr/share/cockpit/nginx/config.json | jq -r '.NGINXPROXYMANAGER_PASSWORD'"
|
cmd = "cat /usr/share/cockpit/appstore/config.json | jq -r '.NGINXPROXYMANAGER_PASSWORD'"
|
||||||
password = shell_execute.execute_command_output_all(cmd)["result"].rstrip('\n')
|
password = shell_execute.execute_command_output_all(cmd)["result"].rstrip('\n')
|
||||||
myLogger.info_logger(password)
|
myLogger.info_logger(password)
|
||||||
param = {
|
param = {
|
||||||
|
|
Loading…
Reference in a new issue