Skip to content

Commit

Permalink
femiwiki: Use luaSandbox (#861)
Browse files Browse the repository at this point in the history
  • Loading branch information
lens0021 authored Aug 2, 2024
1 parent 0b4effe commit 8831963
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dockers/femiwiki/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ FROM --platform=$TARGETPLATFORM ghcr.io/femiwiki/caddy:1.0.0 AS caddy

FROM --platform=$TARGETPLATFORM ghcr.io/femiwiki/femiwiki-extensions:1.5.2 AS extensions

FROM --platform=$TARGETPLATFORM ghcr.io/femiwiki/mediawiki:3.0.0
FROM --platform=$TARGETPLATFORM ghcr.io/femiwiki/mediawiki:3.1.0

# Set timezone
ENV TZ=Asia/Seoul
Expand Down
8 changes: 3 additions & 5 deletions dockers/femiwiki/LocalSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -797,11 +797,9 @@

// Scribunto
wfLoadExtension( 'Scribunto' );
$wgScribuntoDefaultEngine = 'luastandalone';
if ( php_uname( 'm' ) == 'aarch64' ) {
$wgScribuntoEngineConf['luastandalone']['luaPath'] = '/usr/bin/lua';
}
$wgScribuntoEngineConf['luastandalone']['cpuLimit'] = 3;
$wgScribuntoDefaultEngine = 'luasandbox';
$wgScribuntoEngineConf['luasandbox']['cpuLimit'] = 3;
$wgScribuntoEngineConf['luasandbox']['memoryLimit'] = 10485760;

// SecureLinkFixer
wfLoadExtension( 'SecureLinkFixer' );
Expand Down
5 changes: 5 additions & 0 deletions dockers/femiwiki/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# femiwiki

## v1.3.0

- Bump femiwiki/mediawiki to v3.1.0
- Use luaSandbox and set luastandalone

## v1.2.3

- Bump femiwiki/femiwiki-extensions to v1.5.2
Expand Down

0 comments on commit 8831963

Please sign in to comment.