INMYS WIKI

Инженерами для инженеров

Инструменты пользователя

Инструменты сайта


wiki:tuning:start

Настройка wiki

Максимальный размер upload

/etc/nginx/nginx.conf:
В секции http

client_max_body_size 25M;

Дальше - перезапуск:

service nginx restart

php.ini

upload_max_filesize = 200M
post_max_size=0
service php-fpm restart

Допустимые расширения файлов для загрузки

/var/www/html/wiki/conf/mime.local.conf:
Добавить нужные расширения:

txt     text/plain
xml     text/xml
csv     text/csv
sql3    !application/x-sqlite3
bmp     
conf    text/plain

Другой вариант: разрешить всё…

/dokuwiki/inc/media.php
//if(!preg_match('/\.('.$regex.')$/i',$fn)) {
// return array($lang['uploadwrong'],-1);
//}

Для dw2pdf нужен mbstring

yum install php-mbstring
service nginx restart

Для dw2pdf нужен gd

Иначе нет картинок в pdf на выходе.

yum install php-gd
service nginx restart

dw2pdf нумерация содержания

        if($hasToC) {
            //Note: - for double-sided document the ToC is always on an even number of pages, so that the following content is on a correct odd/even page
            //      - first page of ToC starts always at odd page (so eventually an additional blank page is included before)
            //      - there is no page numbering at the pages of the ToC
            $mpdf->TOCpagebreakByArray(
                array(
                    'toc-preHTML' => '<h2>' . $this->getLang('tocheader') . '</h2>',
                    'toc-bookmarkText' => $this->getLang('tocheader'),
                    'links' => true,
                    'outdent' => '1em',
                    'resetpagenum' => false, //start pagenumbering after ToC      <<<<<==== Changed to FALSE
                    'pagenumstyle' => '1'
                )
            );
            $html .= '<tocpagebreak>';
        }

imgpaste ask for filename

Загрузить через панель управления плагин (поставить галку перезаписать файлы)

В настройках плагина указать: @NS@:

imgpaste.zip

dw2pdf шаблоны

drawio plugin

wiki/tuning/start.txt · Последнее изменение: 2022/10/14 11:20 — Roman Abakumov