cancel
Showing results for 
Search instead for 
Did you mean: 

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

4535992
Star Collaborator
Star Collaborator

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:

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

1 ACCEPTED ANSWER

4535992
Star Collaborator
Star Collaborator

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 answer in original post

2 REPLIES 2

arturo8a
Champ in-the-making
Champ in-the-making

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

4535992
Star Collaborator
Star Collaborator

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.