View Source Mobilizon.Config (Mobilizon v5.0.0-beta.1)

Configuration wrapper.

Summary

Functions

Types

@type mobilizon_config() :: [
  name: String.t(),
  description: String.t(),
  hostname: String.t(),
  registrations_open: boolean(),
  languages: [String.t()],
  default_language: String.t(),
  registration_email_allowlist: [String.t()],
  registration_email_denylist: [String.t()],
  demo: boolean(),
  repository: String.t(),
  email_from: String.t(),
  email_reply_to: String.t(),
  federating: boolean(),
  remove_orphan_uploads: boolean()
]

Functions

@spec admin_settings() :: map()
@spec anonymous_actor_id() :: integer()
Link to this function

anonymous_event_creation?()

View Source
@spec anonymous_event_creation?() :: boolean()
Link to this function

anonymous_event_creation_email_captcha_required?()

View Source
@spec anonymous_event_creation_email_captcha_required?() :: boolean()
Link to this function

anonymous_event_creation_email_confirmation_required?()

View Source
@spec anonymous_event_creation_email_confirmation_required?() :: boolean()
Link to this function

anonymous_event_creation_email_required?()

View Source
@spec anonymous_event_creation_email_required?() :: boolean()
Link to this function

anonymous_participation?()

View Source
@spec anonymous_participation?() :: boolean()
Link to this function

anonymous_participation_email_confirmation_required?()

View Source
@spec anonymous_participation_email_confirmation_required?() :: boolean()
Link to this function

anonymous_participation_email_required?()

View Source
@spec anonymous_participation_email_required?() :: boolean()
@spec anonymous_reporting?() :: boolean()
@spec clear_config_cache() :: {:ok | :error, integer()}
@spec config_cache() :: map()
Link to this function

config_cached_value(group, name, fallback \\ nil)

View Source
@spec config_cached_value(String.t(), String.t(), String.t()) :: any()
@spec contact() :: String.t() | nil
@spec default_language() :: String.t()
@spec default_picture() :: Mobilizon.Medias.Media.t() | nil
Link to this function

generate_privacy(locale)

View Source
@spec generate_privacy(String.t()) :: String.t()
@spec generate_terms(String.t()) :: String.t()
@spec get(keys :: module() | atom() | [module() | atom()]) :: any()
@spec get(keys :: [module() | atom()], default :: any()) :: any()
@spec get(key :: module() | atom(), default :: any()) :: any()
@spec get!(key :: module() | atom()) :: any() | no_return()
@spec instance_config() :: mobilizon_config()
@spec instance_demo_mode?() :: boolean()
@spec instance_description() :: String.t()
@spec instance_email_from() :: String.t()
Link to this function

instance_email_reply_to()

View Source
@spec instance_email_reply_to() :: String.t()
Link to this function

instance_event_creation_enabled?()

View Source
@spec instance_event_creation_enabled?() :: boolean()
Link to this function

instance_event_external_enabled?()

View Source
@spec instance_event_external_enabled?() :: boolean()
Link to this function

instance_export_formats()

View Source
@spec instance_export_formats() :: %{event_participants: [String.t()]}
@spec instance_favicon() :: Mobilizon.Medias.Media.t() | nil
@spec instance_federating() :: boolean()
Link to this function

instance_geocoding_autocomplete()

View Source
@spec instance_geocoding_autocomplete() :: boolean()
Link to this function

instance_geocoding_provider()

View Source
@spec instance_geocoding_provider() :: module()
Link to this function

instance_group_feature_enabled?()

View Source
@spec instance_group_feature_enabled?() :: boolean()
@spec instance_hostname() :: String.t()
@spec instance_languages() :: [String.t()]
@spec instance_logo() :: Mobilizon.Medias.Media.t() | nil
Link to this function

instance_long_description()

View Source
@spec instance_long_description() :: String.t()
@spec instance_long_events?() :: boolean()
Link to this function

instance_maps_routing_type()

View Source
@spec instance_maps_routing_type() :: atom()
Link to this function

instance_maps_tiles_attribution()

View Source
@spec instance_maps_tiles_attribution() :: String.t()
Link to this function

instance_maps_tiles_endpoint()

View Source
@spec instance_maps_tiles_endpoint() :: String.t()
@spec instance_name() :: String.t()
Link to this function

instance_privacy(locale \\ "en")

View Source
@spec instance_privacy(String.t()) :: String.t()
@spec instance_privacy_type() :: String.t()
@spec instance_privacy_url() :: String.t()
Link to this function

instance_registrations_allowlist()

View Source
@spec instance_registrations_allowlist() :: [String.t()]
Link to this function

instance_registrations_allowlist?()

View Source
@spec instance_registrations_allowlist?() :: boolean()
Link to this function

instance_registrations_denylist()

View Source
@spec instance_registrations_denylist() :: [String.t()]
Link to this function

instance_registrations_open?()

View Source
@spec instance_registrations_open?() :: boolean()
@spec instance_repository() :: String.t()
Link to this function

instance_resource_providers()

View Source
@spec instance_resource_providers() :: [
  %{type: atom(), software: atom(), endpoint: String.t()}
]
@spec instance_rules() :: String.t()
@spec instance_slogan() :: String.t() | nil
Link to this function

instance_terms(locale \\ "en")

View Source
@spec instance_terms(String.t()) :: String.t()
@spec instance_terms_type() :: String.t()
@spec instance_terms_url() :: String.t() | nil
@spec instance_user_agent() :: String.t()
@spec instance_version() :: String.t()
@spec ldap_enabled?() :: boolean()
Link to this function

oauth_consumer_strategies()

View Source
@spec oauth_consumer_strategies() :: [{atom(), String.t()}]
Link to this function

only_admin_can_create_groups?()

View Source
@spec only_admin_can_create_groups?() :: boolean()
Link to this function

only_groups_can_create_events?()

View Source
@spec only_groups_can_create_events?() :: boolean()
@spec primary_color() :: Mobilizon.Medias.Media.t() | nil
@spec put(keys :: [module() | atom()], value :: any()) :: :ok
@spec put(keys :: module() | atom(), value :: any()) :: :ok
@spec secondary_color() :: Mobilizon.Medias.Media.t() | nil