LocalHost by default in Debug mode

Image resolutions are now requested as width x height
Readded logout button to the settings page
This commit is contained in:
Michał Gdula 2023-03-20 17:04:05 +00:00
parent a6c06ae39c
commit e784ca3011
8 changed files with 92 additions and 94 deletions

13
run.py
View file

@ -5,7 +5,7 @@ print("""
| |_| | | | | | |_| | |__| __/ (_| \__ \
\___/|_| |_|_|\__, |_____\___|\__, |___/
|___/ |___/
Created by Fluffy Bean - Version 23.03.14
Created by Fluffy Bean - Version 23.03.20
""")
@ -18,10 +18,18 @@ Configuration() # Run pre-checks
if DEBUG:
from gallery import create_app
# If no address is specified, use localhost
if not ADDRESS:
ADDRESS = 'localhost'
create_app().run(host=ADDRESS, port=PORT, debug=True, threaded=True)
else:
from setup.runner import OnlyLegs
# If no address is specified, bind the server to all interfaces
if not ADDRESS:
ADDRESS = '0.0.0.0'
options = {
'bind': f'{ADDRESS}:{PORT}',
@ -29,4 +37,3 @@ else:
}
OnlyLegs(options).run()