Links in notification emails use localhost

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

Links in notification emails use localhost

Jump to solution

Hello,

I have upgraded Alfresco 5.0 to version 6.2 (both community edition) using Docker deployment and most things run just fine. However, links in notification emails, i.e. when assigning a task to a user, all use localhost instead of the correct IP address. For example:

http://127.0.0.1:8080/share/page/task-edit?taskId=activiti$41247

instead of

http://172.16.0.42:8080/share/page/task-edit?taskId=activiti$41247

This is my alfresco-global.properties file:

notification.email.siteinvite=true
mail.host=mail.company.de
mail.port=25
mail.encoding=UTF-8
mail.from.default=no-reply@company.de
mail.smtp.auth=false

alfresco.context=alfresco
alfresco.host=172.16.0.42
alfresco.port=8080
alfresco.protocol=http

share.context=share
share.host=172.16.0.42
share.port=8080
share.protocol=http

The docker-compose.yml file is mostly unchanged. I merely added volumes for configurations, logs and data. Alfresco is running on Ubuntu 18.04.

Thak you for your help.

1 Solution

Accepted Solutions
angelborroy
Alfresco Employee

Re: Links in notification emails use localhost

Jump to solution

I guess you need to remove these properties from docker-compose.yml, otherwise they are applied after your settings in alfresco-global.properties

Hyland Developer Evangelist

View solution in original post

1 Reply
angelborroy
Alfresco Employee

Re: Links in notification emails use localhost

Jump to solution

I guess you need to remove these properties from docker-compose.yml, otherwise they are applied after your settings in alfresco-global.properties

Hyland Developer Evangelist