host config fix
This commit is contained in:
parent
77b673717a
commit
a09f3f1a0b
@ -1,6 +1,8 @@
|
|||||||
# syntax=docker/dockerfile:1
|
# syntax=docker/dockerfile:1
|
||||||
FROM python:3.9
|
FROM python:3.9
|
||||||
WORKDIR /v6
|
WORKDIR /v6
|
||||||
|
ENV v6host=0.0.0.0
|
||||||
|
ENV v6port=5900
|
||||||
ENV v6root=/v6data
|
ENV v6root=/v6data
|
||||||
COPY requirements.txt requirements.txt
|
COPY requirements.txt requirements.txt
|
||||||
RUN pip install -r requirements.txt
|
RUN pip install -r requirements.txt
|
||||||
|
@ -10,5 +10,4 @@ myroot.mkdir(exist_ok=True)
|
|||||||
host = os.getenv('v6host', '127.0.0.1')
|
host = os.getenv('v6host', '127.0.0.1')
|
||||||
port = int(os.getenv('v6port', '5003'))
|
port = int(os.getenv('v6port', '5003'))
|
||||||
cakey = bytes.fromhex(os.getenv('v6ca', ''))
|
cakey = bytes.fromhex(os.getenv('v6ca', ''))
|
||||||
# noinspection HttpUrlsUsage
|
caurl = os.getenv('v6caurl', f'http://127.0.0.1:{port}')
|
||||||
caurl = os.getenv('v6caurl', f'http://{host}:{port}')
|
|
||||||
|
Loading…
Reference in New Issue
Block a user