sftpgo使用随笔
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 & Description | Type | Values | Default |
---|---|---|---|
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里面配置
作者:上官飞鸿
出处:https://www.cnblogs.com/jackadam/p/16461443.html
版权:本作品采用「知识共享-署名-非商业性-禁止演绎(CC-BY-NC-ND)」许可协议进行许可。
分类:
优质软件
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· 单线程的Redis速度为什么快?
· SQL Server 2025 AI相关能力初探
· AI编程工具终极对决:字节Trae VS Cursor,谁才是开发者新宠?
· 展开说说关于C#中ORM框架的用法!
2020-07-09 docker python sqlalchemy mariadb NTP 创建时间的研究