1
0
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:
feiniks
2021-01-18 11:30:36 +08:00
committed by GitHub
parent 72ec4c56c6
commit 69d9e53bac
2 changed files with 5 additions and 1 deletions

View File

@@ -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

View File

@@ -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))