host config fix

This commit is contained in:
AF 2021-11-27 20:50:32 +03:00
parent 77b673717a
commit a09f3f1a0b
2 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,8 @@
# syntax=docker/dockerfile:1
FROM python:3.9
WORKDIR /v6
ENV v6host=0.0.0.0
ENV v6port=5900
ENV v6root=/v6data
COPY requirements.txt requirements.txt
RUN pip install -r requirements.txt

View File

@ -10,5 +10,4 @@ myroot.mkdir(exist_ok=True)
host = os.getenv('v6host', '127.0.0.1')
port = int(os.getenv('v6port', '5003'))
cakey = bytes.fromhex(os.getenv('v6ca', ''))
# noinspection HttpUrlsUsage
caurl = os.getenv('v6caurl', f'http://{host}:{port}')
caurl = os.getenv('v6caurl', f'http://127.0.0.1:{port}')