Whats the best way to serve s3 private files in editor as a url?

I’m trying to use the private files in editor as a url in config. what is the best way to do it so its not accessible publicly & user cannot download it from url??

These files can be stored in any storage service and are private… the cache server will be the default documentserver instead of s3 or any other service.

Hello @anand.mainali

As the documentation on document.url parameter says:

Defines the absolute URL where the source viewed or edited document is stored.

Considering this, Document Server cannot pass the authentication. Secure way to get such files is to use JWT to sign requests and authenticate them on the storage application side. Here is the link to the documentation:
https://api.onlyoffice.com/docs/docs-api/additional-api/signature/