-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
41 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,19 +15,19 @@ data: | |
# | ||
# Further documentation for configuration settings may be found at: | ||
# https://www.mediawiki.org/wiki/Manual:Configuration_settings | ||
# Protect against web entry | ||
if ( !defined( 'MEDIAWIKI' ) ) { | ||
exit; | ||
} | ||
$wgNoReplyAddress = '[email protected]'; | ||
## Uncomment this to disable output compression | ||
# $wgDisableOutputCompression = true; | ||
$wgSitename = "UniWiki"; | ||
$wgSMTP = [ | ||
'host' => getenv('SMTP_HOST'), // IP アドレスも指定できます。SMTP サーバーのアドレスを指定します。 SSL または TLS を使用する場合は、プレフィックス「ssl://」を追加しますまたは「tls://」。 | ||
'IDHost' => 'wiki.k8s.pm.uniproject-tech.net', // メールの送信元ドメインを指定します。 | ||
|
@@ -36,29 +36,33 @@ data: | |
'auth' => true, // SMTP 認証を使用するかどうか (true または false) | ||
'username' => getenv('SMTP_USERNAME'), // SMTP認証に使用するユーザー名 (使用する場合) | ||
'password' => getenv('SMTP_PASSWORD'), // SMTP認証に使用するパスワード (使用する場合) | ||
]; | ||
]; | ||
$wgAllowHTMLEmail = true; | ||
$wgDebugLogFile='/var/www/html/debug.log'; | ||
$wgCookieDomain = ".uniproject-tech.net"; | ||
define("NS_UNIPRO", 3000); | ||
define("NS_UNIPRO_TALK", 3001); | ||
$wgExtraNamespaces[NS_UNIPRO] = "UniPro"; | ||
$wgExtraNamespaces[NS_UNIPRO_TALK] = "UniPro_talk"; | ||
$wgExtraNamespaces[NS_UNIPRO_TALK] = "UniPro_talk"; | ||
define("NS_TIPS", 3002); | ||
define("NS_TIPS_TALK", 3003); | ||
$wgExtraNamespaces[NS_TIPS] = "Tips"; | ||
$wgExtraNamespaces[NS_TIPS_TALK] = "Tips_talk"; | ||
## The URL base path to the directory containing the wiki; | ||
## defaults for all runtime URL paths are based off of this. | ||
## For more information on customizing the URLs | ||
## (like /w/index.php/Page_title to /wiki/Page_title) please see: | ||
## https://www.mediawiki.org/wiki/Manual:Short_URL | ||
$wgScriptPath = ""; | ||
## The protocol and server name to use in fully-qualified URLs | ||
$wgServer = "https://wiki.uniproject-tech.net"; | ||
## The URL path to static resources (images, scripts, etc.) | ||
$wgResourceBasePath = $wgScriptPath; | ||
## The URL paths to the logo. Make sure you change this from the default, | ||
## or else you'll overwrite your logo when you upgrade! | ||
$wgLogos = [ | ||
|
@@ -76,31 +80,31 @@ data: | |
$wgAutoConfirmCount = 10; | ||
## UPO means: this is also a user preference option | ||
$wgEnableEmail = true; | ||
$wgEnableUserEmail = true; # UPO | ||
$wgEmergencyContact = "[email protected]"; | ||
$wgPasswordSender = "[email protected]"; | ||
$wgEnotifUserTalk = true; # UPO | ||
$wgEnotifWatchlist = true; # UPO | ||
$wgEmailAuthentication = true; | ||
## Database settings | ||
$wgDBtype = "mysql"; | ||
$wgDBserver = "mysql:3306"; | ||
$wgDBname = "main_wiki"; | ||
$wgDBuser = getenv('DB_USERNAME'); | ||
$wgDBpassword = getenv('DB_PASSWORD'); | ||
# MySQL specific settings | ||
$wgDBprefix = "main_"; | ||
$wgDBssl = true; | ||
# MySQL table options to use during installation or update | ||
$wgDBTableOptions = "ENGINE=InnoDB, DEFAULT CHARSET=binary"; | ||
# Shared database table | ||
# This has no effect unless $wgSharedDB is also set. | ||
$wgSharedTables[] = "actor"; | ||
|
@@ -113,24 +117,24 @@ data: | |
## Shared memory settings | ||
$wgMainCacheType = CACHE_ACCEL; | ||
$wgMemCachedServers = []; | ||
## To enable image uploads, make sure the 'images' directory | ||
## is writable, then set this to true: | ||
$wgEnableUploads = true; | ||
$wgUseImageMagick = true; | ||
$wgImageMagickConvertCommand = "/usr/bin/convert"; | ||
# InstantCommons allows wiki to use images from https://commons.wikimedia.org | ||
$wgUseInstantCommons = true; | ||
# Periodically send a pingback to https://www.mediawiki.org/ with basic data | ||
# about this MediaWiki instance. The Wikimedia Foundation shares this data | ||
# with MediaWiki developers to help guide future development efforts. | ||
$wgPingback = true; | ||
# Site language code, should be one of the list in ./includes/languages/data/Names.php | ||
$wgLanguageCode = "ja"; | ||
# Time zone | ||
$wgLocaltimezone = "Asia/Tokyo"; | ||
$oldtz = getenv("TZ"); | ||
|
@@ -139,44 +143,44 @@ data: | |
# After 1.7.0 offset as minutes | ||
$wgLocalTZoffset = date("Z") / 60; | ||
putenv("TZ=$oldtz"); | ||
## Set $wgCacheDirectory to a writable directory on the web server | ||
## to make your wiki go slightly faster. The directory should not | ||
## be publicly accessible from the web. | ||
#$wgCacheDirectory = "$IP/cache"; | ||
$wgSecretKey = getenv('WG_SECRETKEY'); | ||
# Changing this will log out all existing sessions. | ||
$wgAuthenticationTokenVersion = "1"; | ||
# Site upgrade key. Must be set to a string (default provided) to turn on the | ||
# web installer while LocalSettings.php is in place | ||
$wgUpgradeKey = getenv('WG_UPGRADEKEY'); | ||
## For attaching licensing metadata to pages, and displaying an | ||
## appropriate copyright notice / icon. GNU Free Documentation | ||
## License and Creative Commons licenses are supported so far. | ||
$wgRightsPage = "(c)UniProject 2024"; # Set to the title of a wiki page that describes your license/copyright | ||
$wgRightsUrl = "https://creativecommons.org/licenses/by-nc-sa/4.0/"; | ||
$wgRightsText = "クリエイティブ・コモンズ 表示-非営利-継承"; | ||
$wgRightsIcon = "$wgResourceBasePath/resources/assets/licenses/cc-by-nc-sa.png"; | ||
# Path to the GNU diff3 utility. Used for conflict resolution. | ||
$wgDiff3 = "/usr/bin/diff3"; | ||
## Default skin: you can change the default skin. Use the internal symbolic | ||
## names, e.g. 'vector' or 'monobook': | ||
$wgDefaultSkin = "minerva"; | ||
# Enabled skins. | ||
# The following skins were automatically enabled: | ||
wfLoadSkin( 'MinervaNeue' ); | ||
wfLoadSkin( 'MonoBook' ); | ||
wfLoadSkin( 'Timeless' ); | ||
wfLoadSkin( 'Vector' ); | ||
# Enabled extensions. Most of the extensions are enabled by adding | ||
# wfLoadExtension( 'ExtensionName' ); | ||
# to LocalSettings.php. Check specific extension documentation for more details. | ||
|
@@ -216,8 +220,7 @@ data: | |
wfLoadExtension( 'VisualEditor' ); | ||
wfLoadExtension( 'WikiEditor' ); | ||
# wfLoadExtension( 'SwiftMailer' ); | ||
wfLoadExtension( 'Babel' ); | ||
$wgBabelCategoryNames = [ | ||
'0' => 'User %code%-0', | ||
'1' => 'User %code%-1', | ||
|
@@ -237,10 +240,10 @@ data: | |
wfLoadExtension( 'CheckUser' ); | ||
wfLoadExtension( 'TemplateStyles' ); | ||
$wgDebugComments = true; | ||
# End of automatically generated settings. | ||
# Add more configuration options below. | ||
$wgShowExceptionDetails = true; | ||
# $wgReadOnly = ( PHP_SAPI === 'cli' ) ? false : 'This wiki is currently undergoing maintenance. Please try again later.'; | ||
$wgGroupPermissions['tech-team']['siteadmin'] = true; | ||
$wgGroupPermissions['tech-team']['siteadmin'] = true; |