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 & 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里面配置
相关文章
- C#订阅与发布标准实现 visual studio code .net 开发 设计模式之☞策略模式 C#字符串转二进制、二进制转字符串 c# 接口的协变和逆变 c# 使用迭代器来创建可枚举类型 博客园首页新随笔联系订阅管理 随笔 - 117 文章 - 0 评论 - 57 c# 创建,加载,修改XML文档
- Java -- POI -- 随笔汇总
- 随笔 -- IO -- Socket/ServerSocket -- Echo(BIO)实例
- 【生活随笔】我的2013--一切从心开始
- 面试随笔2
- 【随笔】入行必读:互联网行业薪酬等级
- 【随笔】感同身受
- zeromq随笔
- java随笔5 完整路径的应用
- java随笔3 spring 的注入执行逻辑顺序
- 随笔的纠结
- 随笔让我清醒
- 2017随笔总结
- 国庆随笔