chore: configuration add tracker variables (#2709)

* chore: configuration add tracker variables

* dev: unsplash configuration
This commit is contained in:
Nikhil 2023-11-09 18:20:03 +05:30 committed by GitHub
parent 34bccd7e06
commit 515dba02d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,4 +31,7 @@ class ConfigurationEndpoint(BaseAPIView):
os.environ.get("ENABLE_EMAIL_PASSWORD", "0") == "1" os.environ.get("ENABLE_EMAIL_PASSWORD", "0") == "1"
) )
data["slack_client_id"] = os.environ.get("SLACK_CLIENT_ID", None) data["slack_client_id"] = os.environ.get("SLACK_CLIENT_ID", None)
data["posthog_api_key"] = os.environ.get("POSTHOG_API_KEY", None)
data["posthog_host"] = os.environ.get("POSTHOG_HOST", None)
data["has_unsplash_configured"] = bool(settings.UNSPLASH_ACCESS_KEY)
return Response(data, status=status.HTTP_200_OK) return Response(data, status=status.HTTP_200_OK)