Alfresco CMIS Web Service (CMIS 1.0) do not load "https" procol is still fixed to "http"

cancel
Showing results for 
Search instead for 
Did you mean: 
4535992
Senior Member

Alfresco CMIS Web Service (CMIS 1.0) do not load "https" procol is still fixed to "http"

Jump to solution

So I have a Docker Alfresco 7.2.1 Community Edition installation, I set the following properties on the alfresco global properties:

....
alfresco.host=${SERVER_NAME}
alfresco.port=443
alfresco.scheme=https
alfresco.server=${SERVER_NAME}
api-explorer.url=https://${SERVER_NAME}:443/api-explorer
alfresco.protocol=https
share.host=${SERVER_NAME}
share.port=443
share.protocol=https
opencmis.context.override=true
opencmis.context.value=
opencmis.servletpath.override=true
opencmis.servletpath.value=
opencmis.server.override=true
opencmis.server.value=https://${SERVER_NAME}:443

...

When I go to the url: https://XXX/alfresco/cmisws/ i got this:

lXTcxczI can't understand why the protocol remains http when I told it with the override that it should be https.

 

 

 

1 Solution

Accepted Solutions
4535992
Senior Member

Re: Alfresco CMIS Web Service (CMIS 1.0) do not load "https" procol is still fixed to &amp

Jump to solution

In my use case since I used docker-compose and the nginx proxy, at the end of the trip I just added the following code in the nginx.conf file.

 

  location /alfresco/cmisws {
          proxy_set_header X-Forwarded-Proto https;
          set  $allowOriginSite *;
          proxy_pass_request_headers on;
          proxy_pass_header Set-Cookie;

          # Increment timeout values
          proxy_connect_timeout 600;
          proxy_send_timeout    600;
          proxy_read_timeout    600;
          send_timeout          600;

          # External settings, do not remove
          #ENV_ACCESS_LOG

          proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504;
          proxy_redirect off;
          proxy_buffering off;
          proxy_set_header Host            $host;
          proxy_set_header X-Real-IP       $remote_addr;
          proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
          proxy_pass_header Set-Cookie;

          proxy_pass http://alfresco:8080;
 }

 

I hope it can help other people.

 

View solution in original post

2 Replies
arturo8a
Member II

Re: Alfresco CMIS Web Service (CMIS 1.0) do not load "https" procol is still fixed to &quo

Jump to solution

Hi, i have the same error in 7.4 did you solved it? 

4535992
Senior Member

Re: Alfresco CMIS Web Service (CMIS 1.0) do not load "https" procol is still fixed to &amp

Jump to solution

In my use case since I used docker-compose and the nginx proxy, at the end of the trip I just added the following code in the nginx.conf file.

 

  location /alfresco/cmisws {
          proxy_set_header X-Forwarded-Proto https;
          set  $allowOriginSite *;
          proxy_pass_request_headers on;
          proxy_pass_header Set-Cookie;

          # Increment timeout values
          proxy_connect_timeout 600;
          proxy_send_timeout    600;
          proxy_read_timeout    600;
          send_timeout          600;

          # External settings, do not remove
          #ENV_ACCESS_LOG

          proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504;
          proxy_redirect off;
          proxy_buffering off;
          proxy_set_header Host            $host;
          proxy_set_header X-Real-IP       $remote_addr;
          proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
          proxy_pass_header Set-Cookie;

          proxy_pass http://alfresco:8080;
 }

 

I hope it can help other people.