parent
b2c524bc3e
commit
d62ceb8423
|
@ -13,9 +13,13 @@ from stem import Signal
|
||||||
import threading
|
import threading
|
||||||
from dotenv import load_dotenv
|
from dotenv import load_dotenv
|
||||||
|
|
||||||
|
from werkzeug.middleware.proxy_fix import ProxyFix
|
||||||
|
|
||||||
app = Flask(__name__, static_folder=os.path.dirname(
|
app = Flask(__name__, static_folder=os.path.dirname(
|
||||||
os.path.abspath(__file__)) + '/static')
|
os.path.abspath(__file__)) + '/static')
|
||||||
|
|
||||||
|
app.wsgi_app = ProxyFix(app.wsgi_app)
|
||||||
|
|
||||||
# Load .env file if enabled
|
# Load .env file if enabled
|
||||||
if os.getenv('WHOOGLE_DOTENV', ''):
|
if os.getenv('WHOOGLE_DOTENV', ''):
|
||||||
dotenv_path = '../whoogle.env'
|
dotenv_path = '../whoogle.env'
|
||||||
|
|
Loading…
Reference in New Issue