init
This commit is contained in:
12
web/core/app.py
Normal file
12
web/core/app.py
Normal file
@@ -0,0 +1,12 @@
|
||||
""" 程序入口"""
|
||||
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)
|
Reference in New Issue
Block a user