Compare commits
2 Commits
d4ccb41741
...
379563ee46
Author | SHA1 | Date |
---|---|---|
a9 | 379563ee46 | |
a9 | 2970b2d3f7 |
|
@ -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)
|
|
@ -1,3 +1,5 @@
|
|||
IMAGE_CACHE = '/tmp/imgin-imgur-images/'
|
||||
SINGLE_IMAGE_DELETE_AFTER_SECS = 600
|
||||
template_dir = 'imgin/web/'
|
||||
template_dir = 'imgin/web/'
|
||||
bind_ip = '0.0.0.0'
|
||||
bind_port = '8080'
|
Loading…
Reference in New Issue