mirror of
https://github.com/RustyRaptor/flaskbb.git
synced 2026-12-03 15:35:21 -07:00
12 lines
364 B
Python
12 lines
364 B
Python
import os
|
|
from flaskbb import create_app
|
|
from flaskbb.utils.helpers import ReverseProxyPathFix
|
|
|
|
_basepath = os.path.dirname(os.path.abspath(__file__))
|
|
|
|
# will throw an error if the config doesn't exist
|
|
flaskbb = create_app(config=os.path.join(_basepath, 'flaskbb.cfg'))
|
|
|
|
# Uncomment to use the middleware
|
|
#flaskbb.wsgi_app = ReverseProxyPathFix(flaskbb.wsgi_app)
|