Skip to content

RFE: Default for gravatarproxy and gravatarredirect should be configurable in settings/config

Describe your issue

The defaults in https://git.linux-kernel.at/oliver/ivatar/-/blob/master/ivatar/views.py?ref_type=heads#L118-119make sense for the main, public available, instance under libravatar.org, but may not make sense for local instances where you may not have or want your instance to access the public internet. Hence, these defaults should be configurable in https://git.linux-kernel.at/oliver/ivatar/-/blob/master/config.py

Suggesting to add:

  • DEFAULT_GRAVATARPROXY
  • DEFAULT_GRAVATARREDIRECT

and maybe also

  • FORCEDEFAULT

To the list of settings/config. Need to ensure it's fail safe if the parameters are not listed in the configuration.

What have you tried to far?

Adding the options to the request URL. For example: &gravatarproxy=n&gravatarredirect=n is possible, but tedious and redundant if it's always true for your local instance.

Links / Pointer / Resources

Edited by Oliver Falk