code: def get_configuration():
      
      configuration = {
          "get_object_function": None,
          "hcard_path": "/hcard/users/",
          "nodeinfo2_function": None,
          "process_payload_function": None,
          "search_path": None,
          # TODO remove or default to True once AP support is more ready
          "activitypub": False,
      }
      configuration.update(settings.FEDERATION)
      if not all([
          "get_private_key_function" in configuration,
          "get_profile_function" in configuration,
          "base_url" in configuration,
      ]):
          raise ImproperlyConfigured("Missing required FEDERATION settings, please check documentation.")
      return configuration
docs: Combine defaults with the Django configuration.