sameersbn / docker-redmine

Docker Image for Redmine
http://www.damagehead.com/docker-redmine/
MIT License
1.25k stars 491 forks source link

Add avatar server URL configuration support #546

Closed siberianlove closed 4 months ago

siberianlove commented 4 months ago

Sometimes it's useful to specify a different avatar server, like in my case, where our company has its own Gravatar-compatible service with employee avatars.

Gravatar uses an email hash to map avatars, but companies quite often have business mail with their own domains, and they have some sort of requirements for employee IDs and avatars on corporate portals and services.

jcormier commented 4 months ago

Were you able to verify the default gravatar support still works? I'm not sure how to test it.

siberianlove commented 4 months ago

Yes it works, i tested it. You can test it with administrator rights by going to Administration > Settings > Display or using url https://your-redmine/settings?tab=display Redmine displays current used gravatar server. And by default it will be https://gravatar.com Also you can enable "Use Gravatar user icons" checkbox and visit any user page. Users will have avatars with this checkbox enabled. And if you specify REDMINE_AVATAR_SERVER_URL value of this env will be displayed at Administration > Settings > Display page and redmine will use this gravatar server for displaying avatars.

default one: image

https://seccdn.libravatar.org specified in REDMINE_AVATAR_SERVER_URL: image

jcormier commented 4 months ago

Much appreciated

jcormier commented 4 months ago

Do you want this cherry-picked to any previous releases?

jcormier commented 4 months ago

Released in 5.1.2

siberianlove commented 4 months ago

Do you want this cherry-picked to any previous releases?

Released in 5.1.2

5.1.2 is enough for me, thanks a lot!