How to disable the webdav protocol?
-
Hey all,
is there a way to disable the webdav protocol entirely?
According to the official docs setting the listening port to 0 implies the service is disabled. But manually setting the default port in/app/data/sftpgo.json8888 to 0 does not work as its value gets overwritten upon a restart of SFTPGo. Is this a bug maybe? The Cloudron docs propose to put custom settings in said json file. On a sidenote this does also not allow to set the connection to use HTTPS.
However it would be nice anyway to be able to configure the protocol inside the app location section where we are able to toggle SFTP and FTP. -
Hello @ctrl
The webdav port can not be changed and is configured by the app itself on each startup.
For webdav there is the second domain for the app, by defaultsftpgo-webdav.DOMAIN.TLD, which you should you for https webdav connections.@james said in How to disable the webdav protocol?:
The webdav port can not be changed and is configured by the app itself on each startup.
Well yes, that is my whole point. ^^
The question is why it is set up like this because according to the SFTPgo docs it does not seem to be enabled by default.I'm looking for a way to disable it constantly because it is not needed in many use cases/scenarios.
Also in cases where it is enabled it should usehttpsinstead ofhttp, doesn't it? -
Hello @ctrl
WebDAV is enabled by default for the Cloudron app version of SFTPGo, it will always be the default port8888internally which will bet set each time on app startup.
But, port8888is never publicly exposed, so you can only connect viahttpson the secondary domain.
Unfortunately, it is currently not possible to have secondary domains optional for Cloudron apps.
So either the feature exists or it does not.
In the case of the SFTPGo app this means choosing to offer WebDAV support or to not offer WebDAV support.
We opted to offer the WebDAV support.