Jump to content

دليل:إعدادات الضبط

From mediawiki.org
This page is a translated version of the page Manual:Configuration settings and the translation is 41% complete.
Outdated translations are marked like this.

هذا فهرس لجميع إعدادات التكوين المدعومة بناءً على ملف MainConfigSchema.php.

لا تقم أبدًا بتحرير MainConfigSchema.php؛ أضف الأسطر المناسبة إلى LocalSettings.php بدلاً من ذلك وقم بتعديلها حسب الاقتضاء.

إذا لم تتمكن من العثور على إعداد التكوين هنا ، فتحقق مما إذا تم تعريفه في MainConfigSchema.php. يجب أن يحتوي المتغير على بعض التوثيق هناك.

الإعدادات التي تمت إزالتها في إصدارات ميدياويكي السابقة لـ 1.39 لم تعد مدرجة هنا. الرجاء استخدام مربع البحث للعثور على صفحة الدليل ذات الصلة (مثل دليل:‎$wgAllowAnonymousMinor ).
مدرج أبجديا | مدرجة حسب الوظيفة | تصنيف:إعدادات ضبط ميدياويكي

إعدادات عامة

  • $wgSitename – The name of the site.
  • $wgVersion (متقادم في 1.35) – رقم إصدار برمجيات ميدياويكي

Global Objects

  • $wgAutoloadLocalClasses – سلسلة تربط أسماء الفئات بأسماء الملفات، لأغراض التحميل الآلي.
  • $wgConf – Create a site configuration object.

Server URLs and file paths

الملفات ومرفوعات الملف

يجب أن تكون المرفوعات مُعدّلة خصيصاً لتكون آمنة

المرفوعات المشتركة

يُحفظ هذه الإعدادات من أجل التوافق الخلفي، انظر $wgForeignFileRepos للإعداد الجديد، أو $wgUseInstantCommons إذا كنت بحاجة فقط إلى الوصول القائم إلى الصور على كومنز.

أنواع الـMIME

تحذير تحذير: ↑This is not a configuration setting, but a global state variable. It should be used solely by thumb.php !

طالع أيضا: Manual:MIME type detection

الصور

  • $wgCustomConvertCommand – Use another resizing converter, e.g. GraphicMagick.
  • $wgEnableAutoRotation – Whether to enable image auto-rotation based on EXIF information
  • $wgExiftool – Path to exiftool binary. Used for lossless ICC profile swapping.
  • $wgExiv2Command – Path to the exiv2 executable.
  • $wgGalleryOptions – Default settings for the ‎<gallery> tag.
  • $wgIgnoreImageErrors – If true, inline scaled images will still produce ‎<img> tags ready for output instead of showing an error message.
  • $wgImageLimits – A list of user-selectable limits for the image thumbnail size on image description pages.
  • $wgJpegQuality – When scaling a JPEG thumbnail, this is the quality we request from the backend.
  • $wgJpegTran – Path to jpegtran, for lossless JPEG rotation.
  • $wgMaxImageArea – Don't thumbnail an image if it will use too much working memory.
  • $wgMediaHandlers – Plugins for media file type handling.
  • parameters for upload path
  • $wgTrustedMediaFormats – List of trusted media-types and MIME types.

طالع أيضا: Manual:Configuring file uploads

DjVu

EXIF

  • $wgShowEXIF – Show EXIF data at the end of file description pages.
  • $wgUpdateCompatibleMetadata – Whether to automatically update the img_metadata field if it is outdated but compatible with the current version.

ImageMagick

SVG

Thumbnail settings

Antivirus

  • $wgAntivirus – الاسم المحلي للباحث عن الفيروسات.
  • $wgAntivirusRequired – يحدد ما إذا كان فحص عن الفيروسات سوف ينتج عنه رفض الملف أم لا.
  • $wgAntivirusSetup – تكوين خاص بعدد مختلف من فاحصات الفيروسات.

الإعدادات البريد الإلكتروني

طالع أيضا سماح المستخدم: $wgEmailConfirmToEdit

  • $wgAdditionalMailParams – متغيرات إضافية للبريد الإلكتروني، سوف تمرر في صفة حجة إلى خانة دالة بي إتش بي ‎mail().
  • $wgAllowHTMLEmail – تضبط قيمتها إلى true من أجل تفعيل رسائل البريد الإلكتروني باستخدام إتش تي إم إل.
  • $wgEmailAuthentication – Set to true to enable email authentication (confirmation) for this wiki. Except for password reminder emails, email functions only work for authenticated email addresses.
  • $wgEmergencyContact – Site admin email address
  • $wgEnableEmail – Set to true to enable basic email features.
  • $wgEnableSpecialMute (رفع في 1.46) – Set to true to enable the Special:Mute page.
  • $wgEnableUserEmailMuteList (رفع في 1.46) – حدد القيمة لتكون true كي تفعّل خاصية قائمة وقف رسائل البريد الإلكتروني بين المستخدمين.
  • $wgEnableUserEmail – Set to true to enable user-to-user email.
  • $wgNewPasswordExpiry – الوقت، بالثواني، الذي تنتهي بعده كلمة المرور المؤقتة المرسلة عبر البريد الإلكتروني.
  • $wgNoReplyAddress – Reply-to address for automatically generated emails.
  • $wgPasswordExpirationDays – The number of days that a user's password is good for.
  • $wgPasswordExpireGrace – The number of seconds after a user's password expires during which they can log in without a password change.
  • $wgPasswordReminderResendTime – Minimum time, in hours, which must elapse between password reminder emails.
  • $wgPasswordSender – Password reminder email address.
  • $wgSMTP – For using a direct (authenticated) SMTP server connection.
  • $wgUserEmailConfirmationTokenExpiry – The time, in seconds, after which a email address confirmation token expires.
  • $wgUserEmailConfirmationUseHTML (أضيف في 1.46) (رفع في 1.46) – Whether the modern email confirmation message is used
  • $wgUserEmailUseReplyTo – Set to true to put the sending user's email in a Reply-To header instead of From.

إعدادات الإشعارات البريد الإلكتروني (Enotif)

يتم تحديد الإشعارات الفعلية لكل مستخدم في الخيارات. يمكنك تغيير الافتراضات بـ$wgDefaultUserOptions .

إعدادات القاعدة البيانات

إعدادات LoadBalancer

MySQL-specific

PostgreSQL-specific

  • $wgDBport – Database port. Only used by PostgreSQL.

SQLite-specific

Shared DB settings

Content handlers and storage

Performance hacks and limits

Cache

الصفحة الرئيسية: Manual:Caching
See: Interwiki for Interwiki cache settings.

File Cache

Settings for Server side file caching.

Message Cache

Parser Cache

Memcached settings

Settings for configuring the Memcached memory-based object store (if you are using it) docs/memcached.md has more details.

WAN cache

HTTP proxy (CDN) settings

These settings configure MediaWiki when using a caching HTTP proxy server. They apply to caching using Varnish as well as Squid.

  • $wgCdnMatchParameterOrder – Indicates if should take query parameters order on incoming requests into account for CDN caching
  • $wgCdnMaxageLagged – Cache timeout for the CDN when DB replica lag is high
  • $wgCdnMaxageStale – مدة وقف التخزين المؤقت أثناء تسليم رد ParserCache بسبب تزاحم PoolCounter.
  • $wgCdnMaxageSubstitute – Cache timeout for the CDN when a response is known to be wrong or incomplete (due to load)
  • $wgCdnMaxAge – Cache TTL for the CDN sent as s-maxage (without ESI) or Surrogate-Control (with ESI).
  • $wgCdnReboundPurgeDelay – Secondary delayed purges of URLs
  • $wgCdnServersNoPurge – Same as $wgCdnServers , except no HTTP purges will be sent and CIDR ranges are accepted
  • $wgCdnServers – An array of individual proxy servers to help MediaWiki detect if the request has been proxied.
    But also to send back to the proxy PURGE commands on changes.
  • $wgForcedRawSMaxage – Default maximum age (in seconds) for raw CSS/JavaScript accesses.
  • $wgInternalServer – Internal server name as known to Squid, if different than $wgServer .
  • $wgSquidPurgeUseHostHeader (رفع في 1.42) – Whether to use a Host header in purge requests sent to the proxy servers configured in $wgSquidServers.
  • $wgUseCdn – Enable/disable page view caching.
  • $wgUseESI (متقادم في 1.33) – If you run Squid3 with ESI support, enable this.
  • $wgUsePrivateIPs – Whether private X-Forwarded-For IPs should be accepted
  • $wgVaryOnXFP – Whether to add X-Forwarded-Proto to the Vary header for API requests and RSS/Atom feeds.

HTCP multicast purging

Language, regional and character encoding settings

Timezone settings

Language-specific

الإنجليزية
  • $wgAmericanDates – استخدام الصيغة 'mdy' بدلا من 'dmy' لتكون صيغة التاريخ الافتراضية، على سبيل المثال 'May 12' بدلا من '12 May'.
العربية/الهندية
  • $wgTranslateNumerals – For Hindi, Arabic, and other languages with their own numeral systems, use local numerals instead of Western style (0-9) numerals in some areas of the interface.

Output format and skin settings

Output

سمات

ResourceLoader

طالع ResourceLoader لمزيد من المعلومات.

عناوين وتحويلات الصفحة

النطاقات

دعم الأجهزة المحمولة

روابط ومواقع عبر الويكي

Interwiki cache

See interwiki cache for more information.

Parser

HTML

  • $wgRawHtml – Allow raw, unchecked HTML in ‎<html>…‎</html> sections.
  • $wgTidyConfig – Configuration of the HTML postprocessing tool to use for fixing invalid HTML code.

Statistics and content analysis

  • $wgActiveUserDays – عدد الأيام التي يتعين على أي شخص قبل مضيها التعديل حتى يعتبر مستخدمًا «نشطًا»
  • $wgArticleCountMethod – الطريقة المستخدمة لتحديد ما إذا كانت صفحة في أحد نطاقات المحتوى تُحتسب صفحة محتوى صالحة (مقالة).
  • $wgManualRevertSearchRadius – Maximum number of revisions of a page that will be checked against every new edit made to determine whether the edit was a manual revert.
  • $wgRevertedTagMaxDepth – الحد الأقصى للعمق (عدد مرات المراجعة) لحالات التراجع التي سوف توسم تعديلاتها التي تم التراجع عنها بوسم التغيير mw-reverted.

User accounts, authentication

Authentication

User rights, access control and monitoring

Access

Blocking/banning, and some other related settings.

See Manual:Preventing access for more methods and settings concerning access. See also دليل:حقوق المستخدم for more information about $wgGroupPermissions, $wgAddGroups, $wgRemoveGroups, etc.

See User Access for User Access settings.

الأمن

  • $wgAllowCrossOrigin – السماح بعمل طلبات مجهولة المصدر تتخطى المنشأ على REST API.
  • $wgAllowUserCssPrefs – يسمح بتنفيذ تفضيلات المستخدم باستخدام أوراق الأنماط المتتالية.
  • $wgAllowUserCss – يسمح بوجود صفحات الطرز المتراصة (CSS) الخاصة بالمستخدم
  • $wgAllowUserJs – يسمح بوجود صفحات جافا سكريبت للمستخدمين
  • $wgApiFrameOptions – يتحكم في إطار صفحات واجهة برمجة التطبيقات.
  • $wgBotPasswordsLimit (أضيف في 1.46) – Maximum number of bot passwords a user can create.
  • $wgBreakFrames – انشقاق من مجموعات الأطر. يمكن استخدام هذا الأمر في منع المواقع الخارجية من وضع إطار على موقعك مستخدمين إعلانات.
  • $wgCSPFalsePositiveUrls – Controls what URLs to ignore in upcoming Content-Security-Policy feature's reporting.
  • $wgCSPHeader – Controls Content-Security-Policy header [Experimental]
  • $wgCSPReportOnlyHeader – Controls Content-Security-Policy-Report-Only header [Experimental]
  • $wgCSPUseReportURIDirective (أضيف في 1.47) – Controls the report-uri directive within a content security policy
  • $wgEditPageFrameOptions – Control framing of wiki pages globally.
  • $wgHKDFAlgorithm (رفع في 1.43) – Algorithm for HMAC-based key derivation function (fast, cryptographically secure random numbers).
  • $wgHKDFSecret (رفع في 1.43) – Secret for HMAC-based key derivation function (fast, cryptographically secure random numbers).
  • $wgJwtPrivateKey (أضيف في 1.45) – RSA private key for issuing JWTs, as a PEM string.
  • $wgJwtPublicKey (أضيف في 1.45) – RSA private key for verifying JWTs, as a PEM string.
  • $wgReauthenticateForActions (أضيف في 1.47) – Which actions require reauthentication.
  • $wgRestAllowCrossOriginCookieAuth – يسمح بعمل طلبات مصدقة مختلفة المنشأ في REST API باستخدام ملفات تعريف ارتباط الجلسة.
  • $wgSecretKey – This should always be customized to a secret, unique string in LocalSettings.php .
  • $wgSessionInsecureSecrets (رفع في 1.43) – Allows MediaWiki to work at the cost of storing sensitive session data insecurely.
  • $wgSessionSecret – Secret for session storage.
  • $wgUseSiteCss – Use the site's Cascading Style Sheets (CSS)
  • $wgUseSiteJs – Use the site's JavaScript page

الكوكيز

Profiling, testing and debugging

Debug

طالع أيضا: Manual:How to debug

Profiling

البحث

واجهة المستخدم الخاصة بالتعديل

Maintenance Scripts setting

Recent changes, new pages, watchlist and history

طالع أيضا المساعدة: التغييرات الأخيرة و$wgDefaultUserOptions .

Feed

  • $wgFeed – Toggle syndication feeds (RSS, Atom e.g. Recentchanges, Newpages) on and off.
  • $wgAdvertisedFeedTypes – أنواع التلقيمات التي يجب تقديمها بصفة افتراضية.
  • $wgFeedCacheTimeout – Minimum timeout for cached Recentchanges feed, in seconds.
  • $wgFeedClasses – Available feeds objects.
  • $wgFeedDiffCutoff – When generating Recentchanges RSS/Atom feed, diffs will not be generated for pages larger than this size.
  • $wgFeedLimit – Set maximum number of results to return in syndication feeds (RSS, Atom) for e.g. Recentchanges, Newpages.
  • $wgOverrideSiteFeed – Override the site's default rss/atom feed that appears on every page.

حقوق الطبع والنشر

Import/Export

إمتدادات

تصنيف

Logging

صفحات خاصة

أفعال

  • $wgActions – Array of allowed values for the action parameter for normal pages.

Robot policies

Ajax, Action API and REST API

Ajax

  • $wgAjaxLicensePreview – يستخدم أجاكس في استعراض التراخيص أثناء رفع الملفات.
  • $wgAjaxUploadDestCheck (رفع في 1.41) – تمكين أجاكس من التحقق من الكتابة فوق الملف، قبل الرفع.

واجهة برمجة التطبيقات

  • $wgAllowedCorsHeaders – سرد قائمة بالعناوين المسموح بها في أغراض طلبات واجهة برمجة التطبيقات مختلطة المنشأ.
  • $wgAPICacheHelpTimeout – ضبط وقت وقف الحفظ المؤقت لنص مساعدة واجهة برمجة التطبيقات. اضبطه ليكون «0» كي تعطّل الحفظ المؤقت لنص مساعدة واجهة برمجة التطبيقات.
  • $wgAPIFormatModules – امتدادات وحدة الصياغة البرمجية لواجهة برمجة التطبيقات.
  • $wgAPIListModules – امتدادات وحدة السرد البرمجية لواجهة برمجة التطبيقات.
  • $wgAPIMaxDBRows – العدد الأقصى للصفوف المطلوب مسحها في أعمال الاستفسار في قواعد بيانات واجهة برمجة التطبيقات.
  • $wgAPIMaxLagThreshold – المقدار الأقصى لتأخر قاعدة البيانات على أغلب قواعد البيانات المنسوخة من قاعدة البيانات الذي نقبله قبل إرغام البوتات على محاولة أي طلبات كتابة مرة أخرى مستخدمين أخطاء واجهة برمجة التطبيقات.
  • $wgAPIMaxResultSize – الحجم الأقصى (بالبايت) في أي من نتائج واجهة برمجة التطبيقات.
  • $wgAPIMaxUncachedDiffs – العدد الأقصى للاختلافات التي لم تحفظ في الحفظ المؤقت التي يمكن استردادها في طلب واجهة برمجة تطبيقات واحد.
  • $wgAPIMetaModules – امتدادات وحدة ميتا البرمجية لواجهة برمجة التطبيقات.
  • $wgAPIModules – API module extensions.
  • $wgAPIPropModules – امتدادات وحدة prop البرمجية لواجهة برمجة التطبيقات.
  • $wgAPIRequestLog (رفع في 1.46) – ملف سجل أو معرف مواقع موحد (TCP أو UDP) من أجل قيد طلبات واجهة برمجة التطبيقات فيه.
  • $wgAPIUselessQueryPages – يجب أن تتخطى الوحدة البرمجية ‎ApiQueryQueryPages الصفحات التي تمثل تكرارًا لا داعي له في استفسارات واجهة برمجة التطبيقات.
  • $wgCrossSiteAJAXdomainExceptions – Domains that should not be allowed to make AJAX requests, even if they match one of the domains allowed by $wgCrossSiteAJAXdomains .
  • $wgCrossSiteAJAXdomains – Domains that may make cross-site Ajax requests to the MediaWiki API.
  • $wgDebugAPI – Loosens API security to allow for easier debugging
  • $wgEnableUnsafeXsltOption (أضيف في 1.45) – Enable the deprecated xslt option in the Action API.
  • $wgRestAPIAdditionalRouteFiles – ملفات REST API Route إضافية.
  • $wgRestSandboxSpecs (رفع في 1.43.2) – A list of OpenAPI specs to be made available for exploration on Special:RestSandbox.

Shell and process control

HTTP client

Jobs

Wiki farm

Miscellaneous settings

انظر أيضًا