X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=pukiwiki.ini.php;h=9dda9855fc8fa36b70e843db22aa89cab44454c3;hb=e7f52b78fd2259c80af0fc29629a9fc49244fdc5;hp=ce283438579c2235de787020cc4accf2bd376007;hpb=75b6a52daafbfd26df5d899c9ea9a4b8e92f7e47;p=pukiwiki%2Fpukiwiki.git diff --git a/pukiwiki.ini.php b/pukiwiki.ini.php index ce28343..9dda985 100644 --- a/pukiwiki.ini.php +++ b/pukiwiki.ini.php @@ -1,8 +1,8 @@ group members(users) 'valid-user' => '', // Reserved 'valid-user' group contains all authenticated users - 'groupfoo' => 'foo', - 'groupbar' => 'bar', - 'groupboobar' => 'foo,bar', + 'groupfoobar' => 'foo,bar', ); ///////////////////////////////////////////////// -// Authentication type -// AUTH_TYPE_FORM, AUTH_TYPE_BASIC or AUTH_TYPE_EXTERNAL -// $auth_type = AUTH_TYPE_FORM; -// $auth_external_login_url_base = './exlogin.php'; - -///////////////////////////////////////////////// // Authentication method $auth_method_type = 'pagename'; // By Page name @@ -274,26 +291,83 @@ $edit_auth_pages = array( $search_auth = 0; ///////////////////////////////////////////////// -// LDAP -$ldap_user_account = 0; -// $ldap_user_account = 1; // (0: Disabled, 1: Enabled) -// $ldap_url = 'ldap://ldapserver:389/ou=Users,dc=ldap,dc=example,dc=com'; -// $ldap_bind_dn = ''; -// $ldap_bind_password = ''; +// AutoTicketLink +$ticket_link_sites = array( +/* + array( + 'key' => 'phpbug', + 'type' => 'redmine', // type: redmine, jira or git + 'title' => 'PHP :: Bug #$1', + 'base_url' => 'https://bugs.php.net/bug.php?id=', + ), + array( + 'key' => 'asfjira', + 'type' => 'jira', + 'title' => 'ASF JIRA [$1]', + 'base_url' => 'https://issues.apache.org/jira/browse/', + ), + array( + 'key' => 'pukiwiki-commit', + 'type' => 'git', + 'title' => 'PukiWiki revision $1', + 'base_url' => 'https://ja.osdn.net/projects/pukiwiki/scm/git/pukiwiki/commits/', + ), +*/ +); +// AutoTicketLink - JIRA Default site +/* +$ticket_jira_default_site = array( + 'title' => 'My JIRA - $1', + 'base_url' => 'https://issues.example.com/jira/browse/', +); +//*/ + +///////////////////////////////////////////////// +// Show External Link Cushion Page +// 0: Disabled +// 1: Enabled +$external_link_cushion_page = 0; +$external_link_cushion = array( + // Wait N seconds before jumping to an external site + 'wait_seconds' => 5, + // Internal site domain list + 'internal_domains' => array( + 'localhost', + // '*.example.com', + ), + // Don't show extenal link icons on these domains + 'silent_external_domains' => array( + 'pukiwiki.osdn.jp', + 'pukiwiki.example.com', + ), +); ///////////////////////////////////////////////// -// User prefix that shows its auth provider -define('AUTH_PROVIDER_USER_PREFIX_DEFAULT', 'default:'); -define('AUTH_PROVIDER_USER_PREFIX_LDAP', 'ldap:'); -define('AUTH_PROVIDER_USER_PREFIX_EXTERNAL', 'external:'); +// Show Topicpath title +// 0: Disabled +// 1: Enabled +$topicpath_title = 1; + +///////////////////////////////////////////////// +// Output HTML meta Referrer Policy +// Value: '' (default), no-referrer, origin, same-origin, ... +// Reference: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy +$html_meta_referrer_policy = ''; + +///////////////////////////////////////////////// +// Output custom HTTP response headers +$http_response_custom_headers = array( + // 'Strict-Transport-Security: max-age=86400', + // 'X-Content-Type-Options: nosniff', +); ///////////////////////////////////////////////// // $whatsnew: Max number of RecentChanges -$maxshow = 60; +$maxshow = 500; // $whatsdeleted: Max number of RecentDeleted // (0 = Disabled) -$maxshow_deleted = 60; +$maxshow_deleted = 200; ///////////////////////////////////////////////// // Page names can't be edit via PukiWiki @@ -419,6 +493,13 @@ $non_list = '^\:'; // Search ignored pages $search_non_list = 1; + +// Page redirect rules +$page_redirect_rules = array( + //'#^FromProject($|(/(.+)$))#' => 'ToProject$1', + //'#^FromProject($|(/(.+)$))#' => function($matches) { return 'ToProject' . $matches[1]; }, +); + ///////////////////////////////////////////////// // Template setting @@ -444,6 +525,11 @@ $line_break = 0; $usedatetime = 1; ///////////////////////////////////////////////// +// Logging updates (0 or 1) +$logging_updates = 0; +$logging_updates_log_dir = '/var/log/pukiwiki'; + +///////////////////////////////////////////////// // User-Agent settings // // If you want to ignore embedded browsers for rich-content-wikisite,