Add configurable defaults for gravatarproxy and gravatarredirect

This commit is contained in:
Oliver Falk
2025-10-29 11:30:48 +01:00
parent a07db42ae4
commit aecc8e8477
5 changed files with 148 additions and 4 deletions

View File

@@ -48,3 +48,18 @@ import os
# Bluesky integration credentials
# BLUESKY_IDENTIFIER = "your-bluesky-handle"
# BLUESKY_APP_PASSWORD = "your-app-password"
# Gravatar proxy and redirect settings
# These control the default behavior when no local avatar is found
# URL parameters (?gravatarproxy=n&gravatarredirect=y) will override these defaults
# For private/local instances that should not make external requests:
# DEFAULT_GRAVATARPROXY = False
# DEFAULT_GRAVATARREDIRECT = False
# For instances that prefer direct Gravatar redirects:
# DEFAULT_GRAVATARREDIRECT = True
# DEFAULT_GRAVATARPROXY = False
# For testing/development (always use default avatars):
# FORCEDEFAULT = True