Configurable ip+port within config.py

This commit is contained in:
a9 2022-01-06 05:17:08 +00:00
parent d4ccb41741
commit 2970b2d3f7
1 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ from bottle import static_file
from bottle import SimpleTemplate
from .get import get
from .config import IMAGE_CACHE, template_dir
from .config import IMAGE_CACHE, template_dir, bind_ip, bind_port
def get_timestamp_of_file(file):
@ -78,4 +78,4 @@ def start_server():
pass
mkdir(IMAGE_CACHE)
run(server='gevent', host='0.0.0.0')
run(server='gevent', host=bind_ip, port=bind_port)