02-08-2023 07:02 AM
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.
07-28-2023 03:58 AM
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.
07-27-2023 02:22 PM
Hi, i have the same error in 7.4 did you solved it?
07-28-2023 03:58 AM
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.
Explore our Alfresco products with the links below. Use labels to filter content by product module.