Commit bef4eead authored by rgaudin's avatar rgaudin
Browse files

Updating to latest wikifundi/mediawiki config (from mediawiki-docker)

parent 2b5e5940
......@@ -57,7 +57,7 @@
- name: Add admin account to Wikifundi
environment:
WIKIFUNDI_LANG: "{{ item }}"
command: php maintenance/createAndPromote.php --bureaucrat --sysop --bot --force "{{ admin_account }}" "{{ admin_password }}"
command: php maintenance/createAndPromote.php --bureaucrat --sysop --force "{{ admin_account }}" "{{ admin_password }}"
args:
chdir: "{{ mediawiki_root }}"
with_items: "{{ ansible_local.config.wikifundi_languages | default(omit) }}"
......
......@@ -345,6 +345,7 @@ $wgAjaxWatch = true;
# System limitations
$wgMaxShellMemory = 1024000;
$wgMaxShellTime = 3600;
$wgMaxShellFileSize = 524288;
# Number of seconds before autoblock entries expire
$wgAutoblockExpiry = 8640000;
......
......@@ -74,6 +74,10 @@
# locale en_US.UTF-8 already installed on system role
- name: hack to avoid thumbs generation error for PDF with errors
shell: mv /usr/bin/gs /usr/bin/gs9-20 ; echo '/usr/bin/gs9-20 -sstdout=%stderr $@' > /usr/bin/gs ; chmod a+x /usr/bin/gs
tags: setup
- name: make sure directories exists
file:
dest: "{{ item }}"
......@@ -244,6 +248,15 @@
dest: "{{ mediawiki_root }}/LocalSettings.php"
tags: setup
- name: copy blank debug and mirroring config files
copy:
src: empty.php
dest: "{{ mediawiki_root }}/LocalSettings.{{ item }}.php"
with_items:
- debug
- mirroring
tags: setup
- name: set parsoid config
template:
src: config.yaml.j2
......
......@@ -7,8 +7,8 @@ server {
# access_log /var/log/nginx/access.log;
# error_log /var/log/nginx/error.log;
client_max_body_size 400m;
client_body_timeout 600;
client_max_body_size 200m;
client_body_timeout 300;
# image shortcut
location /w/images {
......@@ -20,7 +20,10 @@ server {
index index.html index.php index.php5;
rewrite ^/wiki/(.*)$ /w/index.php?title=$1&$args;
rewrite ^/([^/\.]*)$ /wiki/$1 redirect;
proxy_read_timeout 3600;
proxy_connect_timeout 600;
proxy_send_timeout 600;
proxy_read_timeout 600;
send_timeout 600;
}
# PHP handler
......@@ -37,8 +40,8 @@ server {
fastcgi_param QUERY_STRING $query_string;
fastcgi_intercept_errors on;
fastcgi_param HTTP_ACCEPT_ENCODING ""; # Safari has a problem here
fastcgi_read_timeout 180s; # file uploads might take long to process (thumbnail creation)
fastcgi_send_timeout 180s; # file uploads still
fastcgi_read_timeout 600; # file uploads might take long to process (thumbnail creation)
fastcgi_send_timeout 600; # file uploads still
# set the language so the proper config file gets included
fastcgi_param WIKIFUNDI_LANG "{{ item }}";
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment