16 lines
264 B
Python
16 lines
264 B
Python
from werkzeug.middleware.proxy_fix import ProxyFix
|
|
from loguru import logger
|
|
|
|
from app import app
|
|
|
|
import debug_routes
|
|
import pv_routes
|
|
import ntp_routes
|
|
|
|
|
|
if __name__ == '__main__':
|
|
app.run(port=8080)
|
|
else:
|
|
exposed_app = ProxyFix(app, x_for=1, x_host=1)
|
|
|