mirror of
https://github.com/morpheus65535/bazarr
synced 2025-03-03 18:15:50 +00:00
WIP
This commit is contained in:
parent
5466ce42e9
commit
34f34130c6
2 changed files with 3 additions and 3 deletions
|
@ -15,7 +15,7 @@ def create_app():
|
||||||
app = Flask(__name__,
|
app = Flask(__name__,
|
||||||
template_folder=os.path.join(os.path.dirname(__file__), '..', 'views'),
|
template_folder=os.path.join(os.path.dirname(__file__), '..', 'views'),
|
||||||
static_folder=os.path.join(os.path.dirname(__file__), '..', 'static'),
|
static_folder=os.path.join(os.path.dirname(__file__), '..', 'static'),
|
||||||
static_url_path=base_url + 'static')
|
static_url_path=base_url.rstrip('/') + '/static')
|
||||||
app.route = prefix_route(app.route, base_url.rstrip('/'))
|
app.route = prefix_route(app.route, base_url.rstrip('/'))
|
||||||
|
|
||||||
app.config["SECRET_KEY"] = 'test'
|
app.config["SECRET_KEY"] = 'test'
|
||||||
|
@ -39,7 +39,7 @@ def create_app():
|
||||||
def http_error_handler(error):
|
def http_error_handler(error):
|
||||||
return redirect(base_url.rstrip('/')), 302
|
return redirect(base_url.rstrip('/')), 302
|
||||||
|
|
||||||
socketio.init_app(app, path=base_url+'socket.io', cors_allowed_origins='*')
|
socketio.init_app(app, path=base_url.rstrip('/')+'/socket.io', cors_allowed_origins='*')
|
||||||
return app
|
return app
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -280,7 +280,7 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
events = io.connect({
|
events = io.connect({
|
||||||
path: '{{ settings.general.base_url }}socket.io',
|
path: '{{ settings.general.base_url.rstrip('/') }}/socket.io',
|
||||||
upgrade: false,
|
upgrade: false,
|
||||||
reconnection: true,
|
reconnection: true,
|
||||||
reconnectionDelay: 1000,
|
reconnectionDelay: 1000,
|
||||||
|
|
Loading…
Reference in a new issue