config/concrete.php の日本語訳
concrete5では、様々な設定を管理画面から行うことができます。このため、プログラムに詳しくない方でも、管理画面から設定を変更することができます。
一方で、ウェブ制作者などで大量にconcrete5のサイトを作成・運営管理する場合、その都度管理画面から設定を変更するのは手間がかかります。
そのような場合、設定ファイルconfig/concrete.phpを編集する、という方法があります。
config/concrete.phpを編集する
config/concrete.phpは、さまざまな設定が記述されているファイルです。このファイルを書き換えて、application/config/concrete.phpに置くと、自分で設定した設定が有効になります。以下のような設定項目があります。パソコンに詳しい方の場合、管理画面から設定するよりも速く設定できるかもしれません。
'5.7.3.1',
'version_installed' => '5.7.3.1',
'version_db' => '20150109000000', // the key of the latest database migration - corresponds to 5.7.3
/**
* インストール状態
*
* @var bool
*/
'installed' => true,
/**
* サイト名
*
* @var string concrete.core.site
*/
'site' => 'concrete5',
/**
* ロケール
*/
'locale' => 'en_US',
/**
* 文字セット
*/
'charset' => 'UTF-8',
/**
* メンテナンスモードかどうか
*/
'maintenance_mode' => false,
/**
* ------------------------------------------------------------------------
* デバッグ設定
* ------------------------------------------------------------------------
*/
'debug' => array(
/**
* エラーを表示するかどうか
*
* @var bool
*/
'display_errors' => true,
/**
* デバッグレベル
*
* @var string (message|debug)
*/
'detail' => 'message'
),
/**
* ------------------------------------------------------------------------
* プロキシ設定
* ------------------------------------------------------------------------
*/
'proxy' => array(
'host' => null,
'port' => null,
'user' => null,
'password' => null
),
/**
* ------------------------------------------------------------------------
* ファイルアップロード設定
* ------------------------------------------------------------------------
*/
'upload' => array(
/**
* 許可されているファイル拡張子
*
* @var string semi-colon separated.
*/
'extensions' => '*.flv;*.jpg;*.gif;*.jpeg;*.ico;*.docx;*.xla;*.png;*.psd;*.swf;*.doc;*.txt;*.xls;*.xlsx;' .
'*.csv;*.pdf;*.tiff;*.rtf;*.m4a;*.mov;*.wmv;*.mpeg;*.mpg;*.wav;*.3gp;*.avi;*.m4v;*.mp4;*.mp3;*.qt;*.ppt;' .
'*.pptx;*.kml;*.xml;*.svg;*.webm;*.ogg;*.ogv'
),
/**
* ------------------------------------------------------------------------
* メール設定
* ------------------------------------------------------------------------
*/
'mail' => array(
'method' => 'PHP_MAIL',
'methods' => array(
'smtp' => array(
'server' => '',
'port' => '',
'username' => '',
'password' => '',
'encryption' => ''
)
)
),
/**
* ------------------------------------------------------------------------
* キャッシュ設定
* ------------------------------------------------------------------------
*/
'cache' => array(
/**
* 有効かどうか
*
* @var bool
*/
'enabled' => true,
/**
* 有効期限
*
* @var int Seconds
*/
'lifetime' => 21600,
/**
* オーバーライドキャッシュ
*
* @var bool
*/
'overrides' => true,
/**
* ブロックキャッシュ
*
* @var bool
*/
'blocks' => true,
/**
* アセットのキャッシュ
*
* @var bool
*/
'assets' => false,
/**
* テーマの CSS/JS のキャッシュ
*
* @var bool
*/
'theme_css' => true,
/**
* フルページキャッシュ
*
* @var bool|string (block|all)
*/
'pages' => false,
/**
* フルページキャッシュの期限
*
* @var string
*/
'full_page_lifetime' => 'default',
/**
* 有効期限のカスタム設定、concrete.cache.full_page_lifetime が 'custom' の場合のみ使用される
*
* @var int
*/
'full_page_lifetime_value' => null,
'identifier' => md5(str_replace(array('https://', 'http://'), '', BASE_URL) . DIR_REL),
'directory' => DIR_FILES_UPLOADED_STANDARD . '/cache',
'page' => array(
'directory' => DIR_FILES_UPLOADED_STANDARD . '/cache/pages',
'adapter' => 'file',
),
'environment' => array(
'file' => 'environment.cache'
),
'levels' => array(
'expensive' => array(
'drivers' => array(
array(
'class' => '\Stash\Driver\Ephemeral',
'options' => array()
),
array(
'class' => '\Stash\Driver\FileSystem',
'options' => array(
'path' => DIR_FILES_UPLOADED_STANDARD . '/cache',
'dirPermissions' => DIRECTORY_PERMISSIONS_MODE_COMPUTED,
'filePermissions' => FILE_PERMISSIONS_MODE_COMPUTED
)
),
)
),
'object' => array(
'drivers' => array(
array(
'class' => '\Stash\Driver\Ephemeral',
'options' => array()
)
)
)
)
),
'multilingual' => array(
'enabled' => false, // 必要になったとき、自動的に true に設定される
'redirect_home_to_default_locale' => false,
'use_browser_detected_locale' => false,
'default_locale' => false,
'default_source_locale' => 'en_US'
),
'design' => array(
'enable_custom' => true,
'enable_layouts' => true
),
/**
* ------------------------------------------------------------------------
* ログ設定
* ------------------------------------------------------------------------
*/
'log' => array(
/**
* メール送信ログ
*
* @var bool
*/
'emails' => true,
/**
* エラーログ
*
* @var bool
*/
'errors' => true,
/**
* スパムログ
*
* @var bool
*/
'spam' => false,
'queries' => array(
/**
* データベースクエリを保存するかどうか
*
* @var bool
*/
'log' => false,
'clear_on_reload' => false
)
),
'jobs' => array(
'enable_scheduling' => true
),
'filesystem' => array(
'permissions' => array(
'file' => FILE_PERMISSIONS_MODE_COMPUTED,
'directory' => DIRECTORY_PERMISSIONS_MODE_COMPUTED
)
),
/**
* ------------------------------------------------------------------------
* メール設定
* ------------------------------------------------------------------------
*/
'email' => array(
/**
* メールを有効にするかどうか
*
* @var bool
*/
'enabled' => true,
'default' => array(
'address' => 'concrete5-noreply@' . $_SERVER['SERVER_NAME'],
'name' => ''
),
'form_block' => array(
'address' => false
)
),
/**
* ------------------------------------------------------------------------
* マーケットプレイス設定
* ------------------------------------------------------------------------
*/
'marketplace' => array(
/**
* マーケットプレイス接続を有効にするかどうか
*
* @var bool
*/
'enabled' => true,
/**
* マーケットプレイストークン
*
* @var null|string
*/
'token' => null,
/**
* マーケットプレイスサイトURLトークン
*
* @var null|string
*/
'site_token' => null,
/**
* インテリジェント検索を有効にするかどうか
*/
'intelligent_search' => true,
/**
* リクエストのログを有効にするかどうか
*/
'log_requests' => false
),
/**
* ------------------------------------------------------------------------
* concrete5.org からのお知らせやヘルプを受け取るかどうか
* ------------------------------------------------------------------------
*/
'external' => array(
/**
* インテリジェント検索でヘルプを含めるかどうか
*
* @var bool concrete.external.intelligent_search_help
*/
'intelligent_search_help' => true,
/**
* concrete5 からの最新情報を表示する
*
* @var bool concrete.external.news_overlay
*/
'news_overlay' => true,
/**
* あなたのサイトで concrete5 お知らせを有効にする
*
* @var bool concrete.external.news
*/
'news' => true,
),
/**
* --------------------------------------------------------------------
* その他の設定
* --------------------------------------------------------------------
*/
'misc' => array(
'user_timezones' => false,
'package_backup_directory' => DIR_FILES_UPLOADED_STANDARD . '/trash',
'enable_progressive_page_reindex' => true,
'mobile_theme_id' => 0,
'seen_introduction' => false,
'sitemap_approve_immediately' => true,
'enable_translate_locale_en_us' => false,
'page_search_index_lifetime' => 259200,
'enable_trash_can' => true,
'app_version_display_in_header' => true
),
'theme' => array(
'compress_preprocessor_output' => true
),
'updates' => array(
'enable_auto_update_core' => false,
'enable_auto_update_packages' => false,
'enable_permissions_protection' => true
),
'paths' => array(
'trash' => '/!trash',
'drafts' => '/!drafts'
),
'conversations' => array(
'attachments_pending_file_set' => 'Conversation Messages (Pending)',
'attachments_file_set' => 'Conversation Messages',
'attachments_enabled' => true
),
'icons' => array(
'page_template' => array(
'width' => 120,
'height' => 90
),
'theme_thumbnail' => array(
'width' => 120,
'height' => 90
),
'file_manager_listing' => array(
'handle' => 'file_manager_listing',
'width' => 60,
'height' => 60
),
'file_manager_detail' => array(
'handle' => 'file_manager_detail',
'width' => 400
),
'user_avatar' => array(
'width' => 80,
'height' => 80,
'default' => ASSETS_URL_IMAGES . '/avatar_none.png'
)
),
'sitemap_xml' => array(
'file' => 'sitemap.xml',
'frequency' => 'weekly',
'priority' => 0.5,
'base_url' => BASE_URL
),
/**
* ------------------------------------------------------------------------
* アクセシビリティ
* ------------------------------------------------------------------------
*/
'accessibility' => array(
/**
* Show titles in the concrete5 toolbars
*
* @var bool
*/
'toolbar_titles' => false,
/**
* Increase the font size in the concrete5 toolbars
*
* @var bool
*/
'toolbar_large_font' => false
),
/**
* ------------------------------------------------------------------------
* 国際化
* ------------------------------------------------------------------------
*/
'i18n' => array(
/**
* 国際化を有効にするかどうか
*/
'enabled' => true,
/**
* ログイン時にユーザーが言語を選べるかどうか
*
* @var bool
*/
'choose_language_login' => false
),
'urls' => array(
'concrete5' => 'http://www.concrete5.org',
'concrete5_secure' => 'https://www.concrete5.org',
'newsflow' => 'http://newsflow.concrete5.org',
'background_feed' => '//backgroundimages.concrete5.org/wallpaper',
'background_feed_secure' => 'https://backgroundimages.concrete5.org/wallpaper',
'background_info' => 'http://backgroundimages.concrete5.org/get_image_data.php',
'paths' => array(
'menu_help_service' => '/tools/get_remote_help_list/',
'theme_preview' => '/tools/preview_theme/',
'site_page' => '/private/sites',
'newsflow_slot_content' => '/tools/slot_content/',
'marketplace' => array(
'connect' => '/marketplace/connect',
'connect_success' => '/marketplace/connect/-/connected',
'connect_validate' => '/marketplace/connect/-/validate',
'connect_new_token' => '/marketplace/connect/-/generate_token',
'checkout' => '/cart/-/add/',
'purchases' => '/marketplace/connect/-/get_available_licenses',
'item_information' => '/marketplace/connect/-/get_item_information',
'item_free_license' => '/marketplace/connect/-/enable_free_license',
'remote_item_list' => '/marketplace/'
)
)
),
/**
* ------------------------------------------------------------------------
* ホワイトラベリング
* ------------------------------------------------------------------------
*/
'white_label' => array(
/**
* カスタムロゴ。公開ディレクトリからの相対パス
*
* @var bool|string The logo path
*/
'logo' => false,
/**
* カスタム名
*
* @var bool|string The name
*/
'name' => false,
/**
* ダッシュボードの背景画像 url
*
* @var null|string
*/
'dashboard_background' => null
),
'session' => array(
'name' => 'CONCRETE5',
'handler' => 'file',
'max_lifetime' => 7200,
'cookie' => array(
'path' => '',
'lifetime' => 7200,
'domain' => '',
'secure' => false,
'httponly' => false
)
),
/**
* ------------------------------------------------------------------------
* ユーザー情報と登録の設定
* ------------------------------------------------------------------------
*/
'user' => array(
/**
* --------------------------------------------------------------------
* 登録の設定
* --------------------------------------------------------------------
*/
'registration' => array(
/**
* 登録が可能かどうか
*
* @var bool
*/
'enabled' => false,
/**
* 登録の区分
*
* @var string The type (disabled|enabled|validate_email|manual_approve)
*/
'type' => 'disabled',
/**
* 登録時に Captcha を有効にするかどうか
*
* @var bool
*/
'captcha' => true,
/**
* ログイン時にメールアドレスを使用する(true)か、ユーザー名を使用する(false)か
*
* @var bool
*/
'email_registration' => false,
/**
* 登録時にメールアドレスをチェックするかどうか
*
* @var bool
*/
'validate_email' => false,
/**
* 管理者が登録を承認するかどうか
*
* @var bool
*/
'approval' => false,
/**
* 登録後に通知メールを送るかどうか
*
* @var bool|string Email to notify
*/
'notification' => false
),
/**
* --------------------------------------------------------------------
* グラバター設定
* --------------------------------------------------------------------
*/
'gravatar' => array(
'enabled' => false,
'max_level' => 0,
'image_set' => 0
),
'group' => array(
'badge' => array(
'default_point_value' => 50
)
),
/**
* 公開プロフィールを有効にするかどうか
*
* @var bool
*/
'profiles_enabled' => false,
/**
* ユーザーごとのタイムゾーンを有効にするかどうか
*
* @var bool
*/
'timezones_enabled' => false,
'username' => array(
'maximum' => 64,
'minimum' => 3,
'allow_spaces' => false
),
'password' => array(
'maximum' => 128,
'minimum' => 5,
'hash_portable' => false,
'hash_cost_log2' => 12
),
'private_messages' => array(
'throttle_max' => 20,
'throttle_max_timespan' => 15 // minutes
)
),
/**
* ------------------------------------------------------------------------
* スパム
* ------------------------------------------------------------------------
*/
'spam' => array(
/**
* ホワイトリスト、グループ ID で指定する
*
* @var int
*/
'whitelist_group' => 0,
/**
* 通知メール
*
* @var string
*/
'notify_email' => ''
),
/**
* ------------------------------------------------------------------------
* セキュリティ
* ------------------------------------------------------------------------
*/
'security' => array(
'ban' => array(
'ip' => array(
'enabled' => true,
/**
* 最大試行回数
*/
'attempts' => 5,
/**
* 最大試行回数失敗時の制限時間
*/
'time' => 300,
/**
* ログインを制限する時間
*/
'length' => 10
)
)
),
/**
* ------------------------------------------------------------------------
* 権限と振る舞い
* ------------------------------------------------------------------------
*/
'permissions' => array(
/**
* アクセス拒否の場合にログイン画面に移動するかどうか
*
* @var bool
*/
'forward_to_login' => true,
/**
* 権限モード
*
* @var string The permission model (simple|advanced)
*/
'model' => 'simple',
/**
* コレクション ID をページ権限識別に使用するかどうか
*
* @var bool
*/
'page_permission_collection_id' => true
),
/**
* ------------------------------------------------------------------------
* SEO 設定
* ------------------------------------------------------------------------
*/
'seo' => array(
'tracking' => array(
/**
* トラッキングコード
*
* @var string
*/
'code' => '',
/**
* トラッキングコードの位置
*
* @var string (top|bottom)
*/
'code_position' => 'bottom'
),
'exclude_words' => 'a, an, as, at, before, but, by, for, from, is, in, into, like, of, off, on, onto, per, ' .
'since, than, the, this, that, to, up, via, with',
/**
* URL リライト
*
* 低レベルで設定された URL_REWRITING_ALL に影響しない
* 「全ての」アイテムをリライトするかどうかを制御する
*
* @var bool
*/
'url_rewriting' => false,
'url_rewriting_all' => false,
'redirect_to_base_url' => false,
'trailing_slash' => false,
'title_format' => '%1$s :: %2$s',
'page_path_separator' => '-',
'group_name_separator' => ' / ',
'segment_max_length' => 128,
'paging_string' => 'ccm_paging_p'
),
/**
* ------------------------------------------------------------------------
* 統計設定
* ------------------------------------------------------------------------
*/
'statistics' => array(
'track_page_views' => true
),
'limits' => array(
'sitemap_pages' => 100,
'delete_pages' => 10,
'copy_pages' => 10,
'page_search_index_batch' => 200,
'job_queue_batch' => 10
)
);


