From 1d977975b2d94e83c01320c5466afac8744559c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=ED=8E=98=EB=AF=B8=EC=9C=84=ED=82=A4?= Date: Sun, 30 Jun 2024 11:42:37 +0900 Subject: [PATCH] Bump femiwiki docker image (#236) * Bump femiwiki docker image * Update templates * Disable BlockByEmail --------- Co-authored-by: lens0021 --- jobs/fastcgi.nomad | 77 ++++++++++++++-------------------------------- 1 file changed, 23 insertions(+), 54 deletions(-) diff --git a/jobs/fastcgi.nomad b/jobs/fastcgi.nomad index 4badb31..88f9c8f 100644 --- a/jobs/fastcgi.nomad +++ b/jobs/fastcgi.nomad @@ -75,13 +75,19 @@ job "fastcgi" { } template { - data = var.run - destination = "local/run.php" + data = var.postrun + destination = "local/postrun" + change_mode = "noop" + } + + template { + data = var.postrun + destination = "local/prerun" change_mode = "noop" } config { - image = "ghcr.io/femiwiki/femiwiki:2024-06-30T00-53-34439279" + image = "ghcr.io/femiwiki/femiwiki:2024-06-30T02-27-15a818f3" volumes = [ "local/opcache-recommended.ini:/usr/local/etc/php/conf.d/opcache-recommended.ini", @@ -92,7 +98,8 @@ job "fastcgi" { "secrets/analytics-credentials-file.json:/a/analytics-credentials-file.json", # Overwrite the default Hotfix.php provided by femiwiki/mediawiki "local/Hotfix.php:/a/Hotfix.php", - "local/Hotfix.php:/usr/local/bin/run", + "local/postrun:/usr/local/bin/postrun", + "local/prerun:/usr/local/bin/prerun", ] mounts = [ @@ -151,12 +158,8 @@ variable "hotfix" { */ $wgMWLoggerDefaultSpi = [ 'class' => 'MediaWiki\\Logger\\LegacySpi' ]; # default -$wgGroupPermissions['autopatrolled']['autopatrol'] = true; -$wgGroupPermissions['blocker']['block'] = true; -$wgGroupPermissions['blocker']['blockemail'] = true; -$wgGroupPermissions['blocker']['unblockself'] = true; -$wgGroupPermissions['user']['torunblocked'] = false; -$wgScribuntoEngineConf['luastandalone']['cpuLimit'] = 3; +# https://github.com/femiwiki/UnifiedExtensionForFemiwiki/issues/147 +$wgUnifiedExtensionForFemiwikiBlockByEmail = falae; // Maintenance // 점검이 끝나면 아래 라인 주석처리한 뒤, 아래 문서 내용을 비우면 됨 @@ -168,55 +171,21 @@ $wgScribuntoEngineConf['luastandalone']['cpuLimit'] = 3; EOF } -variable "run" { +variable "postrun" { + type = string + default = <