From 2970b2d3f77dcb4de7ac1e25e096aa5d3f4b2539 Mon Sep 17 00:00:00 2001 From: a9 Date: Thu, 6 Jan 2022 05:17:08 +0000 Subject: [PATCH] Configurable ip+port within config.py --- imgin/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/imgin/__init__.py b/imgin/__init__.py index c672767..85f6cbd 100644 --- a/imgin/__init__.py +++ b/imgin/__init__.py @@ -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') \ No newline at end of file + run(server='gevent', host=bind_ip, port=bind_port) \ No newline at end of file