Commit ee8a1719 authored by ibuler's avatar ibuler

[Update] 支持可以设置sftp home目录

parent 6614f362
......@@ -344,10 +344,7 @@ defaults = {
'LANGUAGE_CODE': 'zh',
'SECURITY_MAX_IDLE_TIME': 60,
'ASSET_LIST_PAGE_SIZE': 'auto',
'REDIS_HOST': '127.0.0.1',
'REDIS_PORT': 6379,
'REDIS_PASSWORD': '',
'REDIS_DB': 8,
'SFTP_HOME': 'tmp',
}
......
......@@ -45,7 +45,7 @@ def convert_error(func):
class SFTPServer(paramiko.SFTPServerInterface):
root = '/tmp' # Home or /tmp or other path, must exist on all server
root = config.SFTP_HOME # Home or /tmp or other path, must exist on all server
def __init__(self, server, **kwargs):
"""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment