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:
I can't understand why the protocol remains http when I told it with the override that it should be https.
Solved! Go 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.
Hi, i have the same error in 7.4 did you solved it?
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.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.