default['mattermost']['app']['service_settings'] = {
  'site_url' => 'http://localhost:8065',
  'license_file_location' => '',
  'listen_address' => ':8065',
  'connection_security' => '',
  'tls_cert_file' => '',
  'tls_key_file' => '',
  'use_lets_encrypt' => false,
  'lets_encrypt_certificate_cache_file' => './config/letsencrypt.cache',
  'forward_80_to_443' => false,
  'read_timeout' => 300,
  'write_timeout' => 300,
  'maximum_login_attempts' => 10,
  'goroutine_health_threshold' => -1,
  'google_developer_key' => '',
  'enable_oauth_service_provider' => false,
  'enable_incoming_webhooks' => true,
  'enable_outgoing_webhooks' => true,
  'enable_commands' => true,
  'enable_only_admin_integrations' => true,
  'enable_post_username_override' => false,
  'enable_post_icon_override' => false,
  'enable_api_v3' => true,
  'enable_link_previews' => false,
  'enable_testing' => false,
  'enable_developer' => false,
  'enable_security_fix_alert' => true,
  'enable_insecure_outgoing_connections' => false,
  'enable_untrusted_internal_connections' => '',
  'enable_multifactor_authentication' => false,
  'enforce_multifactor_authentication' => false,
  'enable_user_access_tokens' => false,
  'allow_cors_from' => '',
  'session_length_web_in_days' => 30,
  'session_length_mobile_in_days' => 30,
  'session_length_sso_in_days' => 30,
  'session_cache_in_minutes' => 10,
  'session_idle_timeout_in_minutes' => 0,
  'websocket_secure_port' => 443,
  'websocket_port' => 80,
  'webserver_mode' => 'gzip',
  'enable_custom_emoji' => false,
  'enable_custom_picker' => true,
  'restrict_custom_emoji_creation' => 'all',
  'restrict_post_delete' => 'all',
  'allow_edit_post' => 'always',
  'post_edit_time_limit' => 300,
  'time_between_user_typing_updates_milliseconds' => 5000,
  'enable_post_search' => true,
  'enable_user_typing_messages' => true,
  'enable_user_statuses' => true,
  'enable_channel_viewed_messages' => true,
  'cluster_log_timeout_milliseconds' => 2000,
  'close_unused_direct_messages' => false,
}

default['mattermost']['app']['team_settings'] = {
  'site_name' => 'Mattermost',
  'max_users_per_team' => 50,
  'enable_team_creation' => true,
  'enable_user_creation' => true,
  'enable_open_server' => false,
  'restrict_creation_to_domains' => '',
  'enable_custom_brand' => false,
  'custom_brand_text' => '',
  'custom_description_text' => '',
  'restrict_direct_message' => 'any',
  'restrict_team_invite' => 'all',
  'restrict_public_channel_management' => 'all',
  'restrict_private_channel_management' => 'all',
  'restrict_public_channel_creation' => 'all',
  'restrict_private_channel_creation' => 'all',
  'restrict_public_channel_deletion' => 'all',
  'restrict_private_channel_deletion' => 'all',
  'restrict_private_channel_manage_members' => 'all',
  'enable_x_to_leave_channels_from_lhs' => false,
  'user_status_away_timeout' => 300,
  'max_channels_per_team' => 2000,
  'max_notifications_per_channel' => 1000,
  'enable_confirm_notifications_to_channel' => true,
  'teammate_name_display' => 'username',
  'experimental_town_square_is_read_only' => false,
}

default['mattermost']['app']['client_requirements'] = {
  'android_latest_version' => '',
  'android_min_version' => '',
  'desktop_latest_version' => '',
  'desktop_min_version' => '',
  'ios_latest_version' => '',
  'ios_min_version' => '',
}

default['mattermost']['app']['sql_settings'] = {
  'driver_name' => 'mysql',
  'address' => 'dockerhost',
  'port' => '3306',
  'username' => 'mmuser',
  'password' => 'mostest',
  'database_name' => 'mattermost_test',
  'data_source_replicas' => [],
  'data_source_search_replicas' => [],
  'max_idle_conns' => 20,
  'max_open_conns' => 300,
  'trace' => false,
  'at_rest_encrypt_key' => '', # SET THIS!
  'query_timeout' => 30,
}

default['mattermost']['app']['log_settings'] = {
  'enable_console' => true,
  'console_level' => 'DEBUG',
  'enable_file' => true,
  'file_level' => 'INFO',
  'file_format' => '',
  'file_location' => '',
  'enable_webhook_debugging' => true,
  'enable_diagnostics' => true,
}

default['mattermost']['app']['password_settings'] = {
  'minimum_length' => 5,
  'lowercase' => false,
  'number' => false,
  'uppercase' => false,
  'symbol' => false,
}

default['mattermost']['app']['file_settings'] = {
  'enable_file_attachments' => true,
  'enable_mobile_upload' => true,
  'enable_mobile_download' => true,
  'max_file_size' => 52428800,
  'driver_name' => 'local',
  'directory' => './data/',
  'enable_public_link' => false,
  'public_link_salt' => '', # SET THIS!
  'initial_font' => 'luximbi.ttf',
  'amazon_s3_access_key_id' => '',
  'amazon_s3_secret_access_key' => '',
  'amazon_s3_bucket' => '',
  'amazon_s3_region' => 'us-east-1',
  'amazon_s3_endpoint' => 's3.amazonaws.com',
  'amazon_s3_ssl' => true,
  'amazon_s3_sign_v2' => false,
  'amazon_s3_sse' => false,
  'amazon_s3_trace' => false,
}

default['mattermost']['app']['email_settings'] = {
  'enable_sign_up_with_email' => true,
  'enable_sign_in_with_email' => true,
  'enable_sign_in_with_username' => true,
  'send_email_notifications' => true,
  'require_email_verification' => false,
  'feedback_name' => '',
  'feedback_email' => 'test@example.com',
  'feedback_organization' => '',
  'enable_smtp_auth' => false,
  'smtp_username' => '',
  'smtp_password' => '',
  'smtp_server' => 'dockerhost',
  'smtp_port' => '2500',
  'connection_security' => '',
  'invite_salt' => '', # SET THIS!
  'send_push_notifications' => false,
  'push_notification_server' => '',
  'push_notification_contents' => 'generic',
  'enable_email_batching' => false,
  'email_batching_buffer_size' => 256,
  'email_batching_interval' => 30,
  'skip_server_certificate_verification' => false,
  'email_notification_contents_type' => 'full',
}

default['mattermost']['app']['rate_limit_settings'] = {
  'enable' => false,
  'per_sec' => 10,
  'max_burst' => 100,
  'memory_store_size' => 10000,
  'vary_by_remote_addr' => true,
  'vary_by_header' => '',
}

default['mattermost']['app']['privacy_settings'] = {
  'show_email_address' => true,
  'show_full_name' => true,
}

default['mattermost']['app']['support_settings'] = {
  'terms_of_service_link' => 'https://about.mattermost.com/default-terms/',
  'privacy_policy_link' => 'https://about.mattermost.com/default-privacy-policy/',
  'about_link' => 'https://about.mattermost.com/default-about/',
  'help_link' => 'https://about.mattermost.com/default-help/',
  'report_a_problem_link' => 'https://about.mattermost.com/default-report-a-problem/',
  'support_email' => 'feedback@mattermost.com',
}

default['mattermost']['app']['announcement_settings'] = {
  'enable_banner' => false,
  'banner_text' => '',
  'banner_color' => '#f2a93b',
  'banner_text_color' => '#333333',
  'allow_banner_dismissal' => true,
}

default['mattermost']['app']['theme_settings'] = {
  'enable_theme_selection' => true,
  'default_theme' => 'default',
  'allow_custom_themes' => true,
  'allowed_themes' => [],
}

default['mattermost']['app']['gitlab_settings'] = {
  'enable' => false,
  'secret' => '',
  'id' => '',
  'scope' => '',
  'auth_endpoint' => '',
  'token_endpoint' => '',
  'user_api_endpoint' => '',
}

default['mattermost']['app']['google_settings'] = {
  'enable' => false,
  'secret' => '',
  'id' => '',
  'scope' => 'profile email',
  'auth_endpoint' => 'https://accounts.google.com/o/oauth2/v2/auth',
  'token_endpoint' => 'https://www.googleapis.com/oauth2/v4/token',
  'user_api_endpoint' => 'https://www.googleapis.com/plus/v1/people/me',
}

default['mattermost']['app']['office_365_settings'] = {
  'enable' => false,
  'secret' => '',
  'id' => '',
  'scope' => 'User.Read',
  'auth_endpoint' => 'https://login.microsoftonline.com/common/oauth2/v2.0/authorize',
  'token_endpoint' => 'https://login.microsoftonline.com/common/oauth2/v2.0/token',
  'user_api_endpoint' => 'https://graph.microsoft.com/v1.0/me',
}

default['mattermost']['app']['ldap_settings'] = {
  'enable' => false,
  'enable_sync' => false,
  'ldap_server' => '',
  'ldap_port' => 389,
  'connection_security' => '',
  'base_dn' => '',
  'bind_username' => '',
  'bind_password' => '',
  'user_filter' => '',
  'first_name_attribute' => '',
  'last_name_attribute' => '',
  'email_attribute' => '',
  'username_attribute' => '',
  'nickname_attribute' => '',
  'id_attribute' => '',
  'position_attribute' => '',
  'sync_interval_minutes' => 60,
  'skip_certificate_verification' => false,
  'query_timeout' => 60,
  'max_page_size' => 0,
  'login_field_name' => '',
}

default['mattermost']['app']['compliance_settings'] = {
  'enable' => false,
  'directory' => './data/',
  'enable_daily' => false,
}

default['mattermost']['app']['localization_settings'] = {
  'default_server_locale' => 'en',
  'default_client_locale' => 'en',
  'available_locales' => '',
}

default['mattermost']['app']['saml_settings'] = {
  'enable' => false,
  'enable_sync_with_ldap' => false,
  'verify' => true,
  'encrypt' => true,
  'idp_url' => '',
  'idp_descriptor_url' => '',
  'assertion_consumer_service_url' => '',
  'idp_certificate_file' => '',
  'public_certificate_file' => '',
  'private_key_file' => '',
  'first_name_attribute' => '',
  'last_name_attribute' => '',
  'email_attribute' => '',
  'username_attribute' => '',
  'nickname_attribute' => '',
  'locale_attribute' => '',
  'position_attribute' => '',
  'login_button_text' => 'With SAML',
}

default['mattermost']['app']['native_app_settings'] = {
  'app_download_link' => 'https://about.mattermost.com/downloads/',
  'android_app_download_link' => 'https://about.mattermost.com/mattermost-android-app/',
  'ios_app_download_link' => 'https://about.mattermost.com/mattermost-ios-app/',
}

default['mattermost']['app']['cluster_settings'] = {
  'enable' => false,
  'cluster_name' => '',
  'override_hostname' => '',
  'use_ip_address' => true,
  'use_experimental_gossip' => false,
  'read_only_config' => true,
  'gossip_port' => 8074,
  'streaming_port' => 8075,
}

default['mattermost']['app']['metrics_settings'] = {
  'enable' => false,
  'block_profile_rate' => 0,
  'listen_address' => ':8067',
}

default['mattermost']['app']['analytics_settings']['max_users_for_statistics'] = 2500

default['mattermost']['app']['webrtc_settings'] = {
  'enable' => false,
  'gateway_websocket_url' => '',
  'gateway_admin_url' => '',
  'gateway_admin_secret' => '',
  'stun_uri' => '',
  'turn_uri' => '',
  'turn_username' => '',
  'turn_shared_key' => '',
}

default['mattermost']['app']['elastic_search_settings'] = {
  'connection_url' => 'http://dockerhost:9200',
  'username' => 'elastic',
  'password' => 'changeme',
  'enable_indexing' => false,
  'enable_searching' => false,
  'sniff' => true,
  'post_index_replicas' => 1,
  'post_index_shards' => 1,
  'aggregate_posts_after_days' => 365,
  'post_aggregator_job_start_time' => '03:00',
  'index_prefix' => '',
  'live_indexing_batch_size' => 1,
  'request_timeout_seconds' => 30,
  'bulk_indexing_time_window_seconds' => 3600,
}

default['mattermost']['app']['data_retention_settings'] = {
  'enable_message_deletion' => false,
  'enable_file_deletion' => false,
  'message_retention_days' => 365,
  'file_retention_days' => 365,
  'deletion_job_start_time' => '02:00',
}

default['mattermost']['app']['job_settings'] = {
  'run_jobs' => true,
  'run_scheduler' => true,
}

default['mattermost']['app']['plugin_settings'] = {
  'enable' => true,
  'enable_uploads' => false,
  'directory' => './plugins',
  'plugins' => {},
  'plugin_states' => {},
}
