X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=pukiwiki.ini.php;h=9dda9855fc8fa36b70e843db22aa89cab44454c3;hb=0805e6efbaa6d45bc9ef6b3e4b029f7ace57a39b;hp=d5c3ae43c3baefc91865b67c068370b0d63d01cc;hpb=f49d05652dca2e2d661bbb82eacc7039f43b68cd;p=pukiwiki%2Fpukiwiki.git diff --git a/pukiwiki.ini.php b/pukiwiki.ini.php index d5c3ae4..9dda985 100644 --- a/pukiwiki.ini.php +++ b/pukiwiki.ini.php @@ -1,8 +1,8 @@ password 'foo' => 'foo_passwd', // Cleartext 'bar' => '{x-php-md5}f53ae779077e987718cc285b14dfbe86', // PHP md5() 'bar_passwd' 'hoge' => '{SMD5}OzJo/boHwM4q5R+g7LCOx2xGMkFKRVEx', // LDAP SMD5 'hoge_passwd' ); +// Group definition +$auth_groups = array( + // Groupname => group members(users) + 'valid-user' => '', // Reserved 'valid-user' group contains all authenticated users + 'groupfoobar' => 'foo,bar', +); + ///////////////////////////////////////////////// // Authentication method @@ -248,9 +267,10 @@ $auth_method_type = 'pagename'; // By Page name $read_auth = 0; $read_auth_pages = array( - // Regex Username - '#¤Ò¤­¤³¤â¤ë¤Û¤²#' => 'hoge', - '#(¥Í¥¿¥Ð¥ì|¤Í¤¿¤Ð¤ì)#' => 'foo,bar,hoge', + // Regex Groupname or Username + '#PageForAllValidUsers#' => 'valid-user', + '#HogeHoge#' => 'hoge', + '#(NETABARE|NetaBare)#' => 'foo,bar,hoge', ); ///////////////////////////////////////////////// @@ -259,9 +279,9 @@ $edit_auth = 0; $edit_auth_pages = array( // Regex Username - '#Bar¤Î¸ø³«Æüµ­#' => 'bar', - '#¤Ò¤­¤³¤â¤ë¤Û¤²#' => 'hoge', - '#(¥Í¥¿¥Ð¥ì|¤Í¤¿¤Ð¤ì)#' => 'foo,bar,hoge', + '#BarDiary#' => 'bar', + '#HogeHoge#' => 'hoge', + '#(NETABARE|NetaBare)#' => 'foo,bar,hoge', ); ///////////////////////////////////////////////// @@ -271,12 +291,83 @@ $edit_auth_pages = array( $search_auth = 0; ///////////////////////////////////////////////// +// 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', + ), +); + +///////////////////////////////////////////////// +// 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 @@ -330,7 +421,7 @@ define('PKWK_UPDATE_EXEC', ''); // ' -O ' . $output_dir . ' -L ja -c -K ' . $target); ///////////////////////////////////////////////// -// HTTP proxy setting (for TrackBack etc) +// HTTP proxy setting // Use HTTP proxy server to get remote data $use_proxy = 0; @@ -402,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 @@ -427,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, @@ -466,12 +569,12 @@ $agents = array( array('pattern'=>'#\b(AVE-Front)/([0-9\.]+)#', 'profile'=>'keitai'), // The same? // NTT-DoCoMo, i-mode (embeded Compact NetFront) and FOMA (embedded NetFront) phones - // Sample: "DoCoMo/1.0/F501i", "DoCoMo/1.0/N504i/c10/TB/serXXXX" // c°Ê¹ß¤Ï²ÄÊÑ - // Sample: "DoCoMo/2.0 MST_v_SH2101V(c100;TB;W22H12;serXXXX;iccxxxx)" // ()¤ÎÃæ¤Ï²ÄÊÑ + // Sample: "DoCoMo/1.0/F501i", "DoCoMo/1.0/N504i/c10/TB/serXXXX" // c以降は可変 + // Sample: "DoCoMo/2.0 MST_v_SH2101V(c100;TB;W22H12;serXXXX;iccxxxx)" // ()の中は可変 array('pattern'=>'#^(DoCoMo)/([0-9\.]+)#', 'profile'=>'keitai'), // Vodafone's embedded browser - // Sample: "J-PHONE/2.0/J-T03" // 2.0¤Ï"¥Ö¥é¥¦¥¶¤Î"¥Ð¡¼¥¸¥ç¥ó + // Sample: "J-PHONE/2.0/J-T03" // 2.0は"ブラウザの"バージョン // Sample: "J-PHONE/4.0/J-SH51/SNxxxx SH/0001a Profile/MIDP-1.0 Configuration/CLDC-1.0 Ext-Profile/JSCL-1.1.0" array('pattern'=>'#^(J-PHONE)/([0-9\.]+)#', 'profile'=>'keitai'), @@ -529,4 +632,3 @@ $agents = array( array('pattern'=>'#^#', 'profile'=>'default'), // Sentinel ); -?>