How to set WebDAV to https for the app sftpgo (or turn on SSL)

vxhorse

Cadet
Joined
Aug 17, 2023
Messages
5
机器翻译:
How to set WebDAV to https for the app sftpgo (or turn on SSL)

System version: TrueNAS-SCALE-22.12.4.2
Application version: sftpgo v2.5.4_1.0.1

I can't change whether WebDAV enables certificates or not under the default settings screen, but there is an option for certificates in Web Port.

I tried to call the local certificate file through the option [Additional Environment Variables] to let sftpgo enable the certificate by itself, but I found out that this is not enough permissions, because the system default permission for the certificate is root.

Then I also realized that TrueNAS SCALE is not https'ing the Web Port in sftpgo's config file, which has https set to off for both the Web Port and WebDAV Port, so I think it's very likely that this is being accomplished by some system feature.

If that's the case, some official TrueNAS changes to the sftpgo app should allow WebDAV to connect via https. I did try to run nginx in a VM for the reverse generation though, but this introduces additional performance overhead. If you use an unofficial source application again there is a good chance that it will need to be reconfigured due to upgrades later in the system.



原文:
如何将sftpgo这个应用的WebDAV设为https?(或者说开启SSL)

系统版本:TrueNAS-SCALE-22.12.4.2
应用版本:sftpgo v2.5.4_1.0.1

在默认设置界面中下无法修改WebDAV是否启用证书,但是却在Web Port中有证书的选项。
我尝试通过【Additional Environment Variables】这个选项来调用本地证书文件,让sftpgo自行开启证书,但我发现这样做权限不够,因为系统默认给证书的权限是root。
然后我还发现TrueNAS SCALE并不是在sftpgo的配置文件中对Web Port进行了https,sftpgo的配置文件中的Web Port和WebDAV Port的https均为设为关闭,所以我认为这很有可能是系统的某个功能在完成这个事情。
如果按这样说的话,TrueNAS官方对sftpgo这个应用稍微做些更改应该是可以让WebDAV通过https连接的。我虽然尝试在虚拟机中运行nginx进行反代,但这样做会带来额外的性能开销。如果使用非官方的源的应用又很有可能会因为系统后面的升级导致需要重新配置。

1698062901131.png
 
Top