mirror of
https://github.com/etesync/server
synced 2024-11-22 00:38:07 +00:00
Fix sendfile settings
* set SENDFILE_ROOT to the filesystem path for media, not the URL component * use the correct import path to the sendfile backend
This commit is contained in:
parent
7c58540409
commit
43d5af32d7
@ -166,8 +166,8 @@ if any(os.path.isfile(x) for x in config_locations):
|
|||||||
ETEBASE_CREATE_USER_FUNC = "django_etebase.utils.create_user_blocked"
|
ETEBASE_CREATE_USER_FUNC = "django_etebase.utils.create_user_blocked"
|
||||||
|
|
||||||
# Efficient file streaming (for large files)
|
# Efficient file streaming (for large files)
|
||||||
SENDFILE_BACKEND = "django_etebase.sendfile.backends.simple"
|
SENDFILE_BACKEND = "etebase_fastapi.sendfile.backends.simple"
|
||||||
SENDFILE_ROOT = MEDIA_URL
|
SENDFILE_ROOT = MEDIA_ROOT
|
||||||
|
|
||||||
# Make an `etebase_server_settings` module available to override settings.
|
# Make an `etebase_server_settings` module available to override settings.
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user