Direct Access URL is not working / cannot be enabled

cancel
Showing results for 
Search instead for 
Did you mean: 
kkostis
Member II

Direct Access URL is not working / cannot be enabled

Hi,

 

I started using the Community Edition of Alfresco by following the Docker compose method on your Docs.

My intention is to upload files via REST and then generate a link so that can download them without any authentication.

According to Docs, I should use the API that generated the direct access url. Correct?

 

In the meantime, if I use the Discovery API, I see that directAccessUrl is not enabled.

Screenshot 2024-09-13 163916.png

 

 

After reading docs, I tried to modify the docker-compose file in order to add to JAVA_OPTS the below configuration:

 

        -DrestApi.directAccessUrl.enabled=true
        -Dsystem.directAccessUrl.enabled=true
        -Dsystem.directAccessUrl.defaultExpiryTimeInSec=9999
        -Dsystem.directAccessUrl.maxExpiryTimeInSec=9999
 
But even after adding these lines, again in Discovery API the result is the same, and when I try to request direct access url for a specific file it returns 501.
 
Could you please assist?