Compare commits
2 commits
c5a5a2dff5
...
f3ca94de27
Author | SHA1 | Date | |
---|---|---|---|
f3ca94de27 | |||
5d19eacf95 |
6 changed files with 76 additions and 7 deletions
|
@ -7,6 +7,7 @@ set +e
|
|||
ln -fs "$scriptdir/smw-jobs.sh" /usr/local/bin/smw-jobs
|
||||
ln -fs "$scriptdir/nginx.conf" /etc/nginx/nginx.conf
|
||||
ln -fs "$scriptdir/fastcgi.conf" /etc/nginx/fastcgi.conf
|
||||
ln -fs "$scriptdir/robots.txt" /etc/nginx/robots.txt
|
||||
ln -fs "$scriptdir/public_mediawiki/public_mediawiki.conf" /etc/nginx/sites-enabled/public_mediawiki.conf
|
||||
ln -fs "$scriptdir/orga_mediawiki/orga_mediawiki.conf" /etc/nginx/sites-enabled/orga_mediawiki.conf
|
||||
ln -fs "$scriptdir/pgtune.conf" "/etc/postgresql/15/main/conf.d/pgtune.conf"
|
||||
|
|
|
@ -9,9 +9,14 @@ server {
|
|||
client_body_timeout 60;
|
||||
index index.php index.html index.htm;
|
||||
|
||||
location ~ \.ht {
|
||||
deny all;
|
||||
}
|
||||
location ~ \.ht {
|
||||
deny all;
|
||||
}
|
||||
|
||||
location /robots.txt {
|
||||
root /etc/nginx;
|
||||
try_files /robots.txt =404;
|
||||
}
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ @rewrite;
|
||||
|
|
|
@ -159,6 +159,10 @@ wfLoadExtension( 'TemplateData' );
|
|||
wfLoadExtension( 'TitleBlacklist' );
|
||||
wfLoadExtension( 'VisualEditor' );
|
||||
wfLoadExtension( 'WikiEditor' );
|
||||
wfLoadExtension( 'CodeMirror' );
|
||||
wfLoadExtension( 'TemplateStyles' );
|
||||
wfLoadExtension( 'TemplateStylesExtender' );
|
||||
wfLoadExtension( 'Widgets' );
|
||||
|
||||
wfLoadExtension( 'PluggableAuth' );
|
||||
wfLoadExtension( 'OpenIDConnect' );
|
||||
|
@ -180,6 +184,10 @@ $wgGroupPermissions['sysop']['createaccount'] = true;
|
|||
# allow copy uploads by anyone
|
||||
$wgGroupPermissions['user']['upload_by_url'] = true;
|
||||
|
||||
# disallow widget editing by anyone except sysops
|
||||
$wgGroupPermissions['*']['editwidgets'] = false;
|
||||
$wgGroupPermissions['sysop']['editwidgets'] = true;
|
||||
|
||||
# SSO config
|
||||
# necessary to allow admin user(s) to login
|
||||
$wgPluggableAuth_EnableLocalLogin = true;
|
||||
|
@ -204,6 +212,8 @@ $wgPluggableAuth_Config["Chaostreff Backnang IdP"] = [
|
|||
]
|
||||
];
|
||||
|
||||
$wgDefaultUserOptions['usecodemirror'] = 1;
|
||||
|
||||
# interwiki config
|
||||
$wgGroupPermissions['sysop']['interwiki'] = true;
|
||||
$wgInterwikiMagic = true;
|
||||
|
@ -223,3 +233,8 @@ $wgFileExtensions[] = 'svg';
|
|||
# This extension will no longer be needed in MediaWiki >= 1.41, then $wgSVGNativeRendering can be used
|
||||
wfLoadExtension( 'NativeSvgHandler' );
|
||||
|
||||
# do not sanitize my CSS
|
||||
#$wgTemplateStylesAutoParseContent = false;
|
||||
$wgTemplateStylesExtenderEnablePrefersColorScheme = true;
|
||||
$wgTemplateStylesExtenderEnableCssVars = true;
|
||||
|
||||
|
|
|
@ -3,6 +3,42 @@
|
|||
{
|
||||
"type": "vcs",
|
||||
"url": "https://gerrit.wikimedia.org/r/mediawiki/extensions/OpenIDConnect"
|
||||
},
|
||||
{
|
||||
"type": "package",
|
||||
"package": {
|
||||
"name": "mediawiki/codemirror",
|
||||
"version": "6.0.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeMirror.git",
|
||||
"reference": "REL1_39"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "package",
|
||||
"package": {
|
||||
"name": "mediawiki/templatestyles",
|
||||
"version": "1.0.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateStyles",
|
||||
"reference": "REL1_39"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "package",
|
||||
"package": {
|
||||
"name": "mediawiki/widgets",
|
||||
"version": "1.6.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://gerrit.wikimedia.org/r/mediawiki/extensions/Widgets",
|
||||
"reference": "1.6.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
|
@ -12,7 +48,11 @@
|
|||
"mediawiki/semantic-compound-queries": "^2.2",
|
||||
"mediawiki/semantic-extra-special-properties": "^3",
|
||||
"mediawiki/semantic-media-wiki": "^4.2",
|
||||
"mediawiki/semantic-result-formats": "^4.2"
|
||||
"mediawiki/semantic-result-formats": "^4.2",
|
||||
"mediawiki/codemirror": "^6",
|
||||
"mediawiki/templatestyles": "^1",
|
||||
"octfx/template-styles-extender": "^1.2",
|
||||
"mediawiki/widgets": "^1.6"
|
||||
},
|
||||
"config": {
|
||||
"preferred-install": "source",
|
||||
|
|
|
@ -9,9 +9,14 @@ server {
|
|||
client_body_timeout 60;
|
||||
index index.php index.html index.htm;
|
||||
|
||||
location ~ \.ht {
|
||||
deny all;
|
||||
}
|
||||
location ~ \.ht {
|
||||
deny all;
|
||||
}
|
||||
|
||||
location /robots.txt {
|
||||
root /etc/nginx;
|
||||
try_files /robots.txt =404;
|
||||
}
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ @rewrite;
|
||||
|
|
3
robots.txt
Normal file
3
robots.txt
Normal file
|
@ -0,0 +1,3 @@
|
|||
User-Agent: *
|
||||
Disallow: /
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue