13 lines
283 B
Python
13 lines
283 B
Python
""" 程序入口"""
|
|
from nc_http.tools.reverse_proxied import ReverseProxied
|
|
|
|
from core import conf
|
|
from core.factory import ApiApp
|
|
|
|
app = ApiApp()
|
|
|
|
app.wsgi_app = ReverseProxied(app.wsgi_app)
|
|
|
|
if __name__ == '__main__':
|
|
app.run(host='0.0.0.0', port=conf.PORT, debug=conf.DEBUG)
|