1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-08-31 23:19:36 +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

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