mirror of
https://gitlab.com/RemixDev/deemix-gui-pyweb.git
synced 2024-12-29 10:56:06 +00:00
Removed public subfolder for files inside public
This commit is contained in:
parent
7a9014f62f
commit
da0b4dc6dc
|
@ -53,7 +53,7 @@ def resource_path(relative_path):
|
||||||
return path.join(base_path, relative_path)
|
return path.join(base_path, relative_path)
|
||||||
|
|
||||||
gui_dir = resource_path(path.join('webui', 'public'))
|
gui_dir = resource_path(path.join('webui', 'public'))
|
||||||
server = CustomFlask(__name__, static_folder=gui_dir, template_folder=gui_dir)
|
server = CustomFlask(__name__, static_folder=gui_dir, template_folder=gui_dir, static_url_path="")
|
||||||
server.config['SEND_FILE_MAX_AGE_DEFAULT'] = 1 # disable caching
|
server.config['SEND_FILE_MAX_AGE_DEFAULT'] = 1 # disable caching
|
||||||
socketio = SocketIO(server, async_mode='threading')
|
socketio = SocketIO(server, async_mode='threading')
|
||||||
server.wsgi_app = ProxyFix(server.wsgi_app, x_for=1, x_proto=1)
|
server.wsgi_app = ProxyFix(server.wsgi_app, x_for=1, x_proto=1)
|
||||||
|
|
2
webui
2
webui
|
@ -1 +1 @@
|
||||||
Subproject commit e192011f3186c5606aca8005505ea86f64adc43b
|
Subproject commit 3ecc32b164018fb37989cb33816a3d9e56fe3b92
|
Loading…
Reference in a new issue