zl程序教程

您现在的位置是:首页 >  其它

当前栏目

sftpgo使用随笔

随笔 使用
2023-09-27 14:22:22 时间

https://github.com/drakkan/sftpgo

功能齐全、高度可配置化、支持自定义 HTTP/S,FTP/S 和 WebDAV 的 SFTP 服务。 一些存储后端支持:本地文件系统、加密本地文件系统、S3(兼容)对象存储,Google Cloud 存储,Azure Blob 存储,SFTP。

 

有docker镜像,我一般也用docker,不用配很多东西,系统隔离。可以升级进步到K8S。

docker使用时需注意如下:

使用WebDAV,需要去注册表设置安全等级,否则http协议,在windows下会无法映射为驱动器。

https://github.com/drakkan/sftpgo/issues/913

https://docs.microsoft.com/en-us/iis/publish/using-webdav/using-the-webdav-redirector#webdav-redirector-registry-settings

 

Value & DescriptionTypeValuesDefault
AcceptOfficeAndTahoeServers Specifies whether the WebClient service can connect to web sites that are running SharePoint or Office Web Server. DWORD 0 = False
1 = True
1
AuthForwardServerList Specifies a list of local URLs for forwarding credentials that bypasses any proxy settings. (Note: This requires Windows Vista SP1 or later.) MULTI_SZ A carriage-return/line-feed separated list of URLs. n/a
BasicAuthLevel Specifies whether the WebClient service can use basic authentication to talk to a server. Note: Using basic authentication can cause serious security issues as the username/password are transmitted in clear text, therefore the use of basic authentication over WebDAV is disabled by default unless the connection is using SSL. That being said, this registry key can override the default basic authentication behavior, but it is still strongly discouraged. DWORD 0 = Basic authentication is disabled
1 = Basic authentication is enabled for SSL web sites only
2 = Basic authentication is enabled for SSL and non-SSL web sites
1
FileAttributesLimitInBytes Specifies the maximum size that is allowed by the WebClient service for all properties on a specific collection. DWORD Size of attributes in bytes 1,000,000 decimal (1 MB)
FileSizeLimitInBytes Specifies the maximum size in bytes that the WebClient service allows for file transfers. DWORD File size in bytes 50,000,000 decimal (50 MB)
InternetServerTimeoutInSec Specifies the connection timeout for the WebClient service uses when communicating with non-local WebDAV servers. DWORD Time in seconds 30 decimal
LocalServerTimeoutInSec Specifies the connection timeout for the WebClient service uses when communicating with a local WebDAV server. DWORD Time in seconds 15 decimal
SendReceiveTimeoutInSec Specifies the timeout in seconds that WebDAV the WebClient service uses after issuing a request, such as "GET /file.ext" or "PUT /file.ext". DWORD Time in seconds 60 decimal
ServerNotFoundCacheLifeTimeInSec Specifies the period of time that a server is cached as non-WebDAV by the WebClient service. Note: The WebClient service maintains a list of non-WebDAV servers that have been contacted. If the server is found in this list, a fail is returned immediately without attempting to contact the server. DWORD Time in seconds 60 decimal
SupportLocking Specifies whether the WebClient service supports locking. DWORD 0 = False
1 = True
1

 

使用FTP时,需要设置反向地址,否则FTP客户端容易连不上

set the passive IP

https://github.com/drakkan/sftpgo/issues/876

没研究怎么放在docker-copmose里面,随手改json配置文件能用了。

有空研究一下怎么放在docker-compose里面配置