Performance-Cache (CACHE_ACCEL / File-Cache) & MsUpload (Mehrfach-Upload) fuer MediaWiki 1.46 aktiviert
Deploy Development / deploy (push) Successful in 46s
Deploy Development / deploy (push) Successful in 46s
This commit is contained in:
1 parent
43462960d5
commit
5fd1387d36
3 files changed
+18
-7
No files matched your search
+8
-3
@@ -5,14 +5,19 @@
|
|||||||
ARG MW_VERSION=1.46
|
ARG MW_VERSION=1.46
|
||||||
FROM mediawiki:${MW_VERSION}
|
FROM mediawiki:${MW_VERSION}
|
||||||
|
|
||||||
# Pakete fuer Video-Vorschaubilder (ffmpeg) & Bildverarbeitung installieren
|
# Pakete fuer Video-Vorschaubilder (ffmpeg) & Bildverarbeitung + MsUpload (Mehrfach-Upload im Editor)
|
||||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
ffmpeg \
|
ffmpeg \
|
||||||
imagemagick \
|
imagemagick \
|
||||||
unzip \
|
unzip \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/* \
|
||||||
|
&& mkdir -p /var/www/html/extensions/MsUpload \
|
||||||
|
&& curl -fsSL "https://codeload.github.com/wikimedia/mediawiki-extensions-MsUpload/tar.gz/refs/heads/master" \
|
||||||
|
| tar -xz --strip-components=1 -C /var/www/html/extensions/MsUpload \
|
||||||
|
&& mkdir -p /var/www/html/cache \
|
||||||
|
&& chown -R www-data:www-data /var/www/html/cache
|
||||||
|
|
||||||
# PHP Upload-Limits fuer grosse Karate-Videos (500 MB)
|
# PHP Upload-Limits fuer grosse Karate-Videos (500 MB) & Mehrfach-Uploads
|
||||||
COPY config/php-uploads.ini /usr/local/etc/php/conf.d/zz-karate-uploads.ini
|
COPY config/php-uploads.ini /usr/local/etc/php/conf.d/zz-karate-uploads.ini
|
||||||
|
|
||||||
# Vereins-Logos & Favicon ins Image kopieren
|
# Vereins-Logos & Favicon ins Image kopieren
|
||||||
|
|||||||
@@ -83,10 +83,15 @@ $wgSecretKey = getenv( 'MW_SECRET_KEY' ) ?: ( $wgSecretKey ?? '' );
|
|||||||
$wgUpgradeKey = getenv( 'MW_UPGRADE_KEY' ) ?: ( $wgUpgradeKey ?? '' );
|
$wgUpgradeKey = getenv( 'MW_UPGRADE_KEY' ) ?: ( $wgUpgradeKey ?? '' );
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// 5. Cache & Uploads / Mediendateien
|
// 5. Performance-Cache & Uploads / Mediendateien
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
$wgMainCacheType = CACHE_NONE;
|
// Nutzt APCu im RAM falls verfuegbar, sonst schnellen lokalen Datei-Cache
|
||||||
|
$wgMainCacheType = function_exists( 'apcu_fetch' ) ? CACHE_ACCEL : CACHE_ANYTHING;
|
||||||
$wgMemCachedServers = [];
|
$wgMemCachedServers = [];
|
||||||
|
$wgCacheDirectory = "$IP/cache";
|
||||||
|
$wgUseLocalMessageCache = true;
|
||||||
|
$wgParserCacheType = CACHE_DB;
|
||||||
|
$wgEnableSidebarCache = true;
|
||||||
|
|
||||||
$wgEnableUploads = true;
|
$wgEnableUploads = true;
|
||||||
$wgUseImageMagick = true;
|
$wgUseImageMagick = true;
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
; PHP-Konfiguration fuer grosse Karate-Videos (MP4)
|
; PHP-Konfiguration fuer grosse Karate-Videos (MP4) & Mehrfach-Uploads
|
||||||
upload_max_filesize = 500M
|
upload_max_filesize = 500M
|
||||||
post_max_size = 500M
|
post_max_size = 512M
|
||||||
|
max_file_uploads = 50
|
||||||
memory_limit = 512M
|
memory_limit = 512M
|
||||||
max_execution_time = 600
|
max_execution_time = 600
|
||||||
max_input_time = 600
|
max_input_time = 600
|
||||||
Reference in new issue
Block a user