Skip to content

Add option to disable Gravatar via environment variable (Privacy improvement)#5470

Open
rezzorix wants to merge 1 commit intoNginxProxyManager:developfrom
rezzorix:feature/disable-gravatar
Open

Add option to disable Gravatar via environment variable (Privacy improvement)#5470
rezzorix wants to merge 1 commit intoNginxProxyManager:developfrom
rezzorix:feature/disable-gravatar

Conversation

@rezzorix
Copy link
Copy Markdown

@rezzorix rezzorix commented Apr 9, 2026

Related to #1843

This adds an optional environment variable, DISABLE_GRAVATAR, to disable Gravatar usage.
It is useful for users who want to improve privacy and avoid external requests to Gravatar.

Add to docker-compose.yml

environment:
  DISABLE_GRAVATAR: 'true'

When set to true:

  • Gravatar is no longer queried when disabled.
  • Gravatar URLs are not generated
  • the avatar field returns an empty string
  • the frontend falls back to the default local avatar

When set to false or left unset:

  • existing behavior remains unchanged / Gravatar is requested (again)

Tested with:

  • new users
  • existing users

Added functionality to disable Gravatar based on environment variable. Updated avatar retrieval logic to accommodate this new setting.
@nginxproxymanagerci
Copy link
Copy Markdown

Docker Image for build 1 is available on DockerHub:

nginxproxymanager/nginx-proxy-manager-dev:pr-5470

Note

Ensure you backup your NPM instance before testing this image! Especially if there are database changes.
This is a different docker image namespace than the official image.

Warning

Changes and additions to DNS Providers require verification by at least 2 members of the community!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant