mirror of
https://github.com/haiwen/seafile-server.git
synced 2025-09-03 16:34:33 +00:00
Add USE_GO_FILESERVER variable (#442)
This commit is contained in:
@@ -35,7 +35,7 @@ from .service import post_empty_file, del_file
|
||||
from .service import CCNET_CONF_PATH, CCNET_SERVER_ADDR, \
|
||||
MAX_UPLOAD_FILE_SIZE, MAX_DOWNLOAD_DIR_SIZE, FILE_SERVER_ROOT, \
|
||||
CALC_SHARE_USAGE, SERVICE_URL, FILE_SERVER_PORT, \
|
||||
SEAFILE_CENTRAL_CONF_DIR, LDAP_HOST
|
||||
SEAFILE_CENTRAL_CONF_DIR, LDAP_HOST, USE_GO_FILESERVER
|
||||
|
||||
from .service import send_message
|
||||
|
||||
|
@@ -72,6 +72,10 @@ def get_fileserver_option(key, default):
|
||||
|
||||
return default
|
||||
|
||||
USE_GO_FILESERVER = False
|
||||
if config.has_option('fileserver', 'use_go_fileserver'):
|
||||
USE_GO_FILESERVER = config.getboolean('fileserver', 'use_go_fileserver')
|
||||
|
||||
MAX_UPLOAD_FILE_SIZE = None # Defaults to no limit
|
||||
try:
|
||||
max_upload_size_mb = int(get_fileserver_option('max_upload_size', 0))
|
||||
|
Reference in New Issue
Block a user