Update to 2022-02-22 18:00

This commit is contained in:
Daniel Berteaud 2022-02-22 18:00:11 +01:00
parent 2a423eee2a
commit 4737fece2c
7 changed files with 31 additions and 1 deletions

View File

@ -69,6 +69,9 @@ bookstack_default_lang: fr
# Session lifetime, in minutes
bookstack_session_lifetime: 480
# PDF Exporter. Can be either dompdf (the default) or wkhtmltopdf
bookstack_pdf_exporter: dompdf
# You can set custom directive with this:
# bookstack_settings:
# AUTH_METHOD: saml2

View File

@ -6,3 +6,5 @@ dependencies:
- role: mysql_server
when: bookstack_db_server in ['localhost','127.0.0.1']
- role: composer
- role: wkhtmltopdf
when: bookstack_pdf_exporter == 'wkhtmltopdf'

View File

@ -27,3 +27,7 @@ QUEUE_CONNECTION=database
{% for key in bookstack_settings.keys() | list %}
{{ key }}="{{ bookstack_settings[key] }}"
{% endfor %}
{% if bookstack_pdf_exporter == 'wkhtmltopdf' %}
WKHTMLTOPDF=/usr/local/bin/wkhtmltopdf
ALLOW_UNTRUSTED_SERVER_FETCHING=true
{% endif %}

View File

@ -25,7 +25,7 @@ php_admin_value[upload_tmp_dir] = {{ bookstack_root_dir }}/tmp
php_admin_value[sys_temp_dir] = {{ bookstack_root_dir }}/tmp
php_admin_value[post_max_size] = 100M
php_admin_value[upload_max_filesize] = 100M
php_admin_value[disable_functions] = system, show_source, symlink, exec, dl, shell_exec, passthru, phpinfo, escapeshellarg, escapeshellcmd
php_admin_value[disable_functions] = system, show_source, symlink, exec, dl, shell_exec, passthru, phpinfo, escapeshellcmd
php_admin_value[open_basedir] = {{ bookstack_root_dir }}:/usr/share/pear/:/usr/share/php/
php_admin_value[max_execution_time] = 60
php_admin_value[max_input_time] = 60

View File

@ -0,0 +1,3 @@
---
wkhtmltopdf_version: 0.12.6-1

View File

@ -0,0 +1,15 @@
---
# Load distribution specific variables
- include_vars: "{{ item }}"
with_first_found:
- "{{ role_path }}/vars/{{ ansible_distribution }}-{{ ansible_distribution_major_version }}.yml"
- "{{ role_path }}/vars/{{ ansible_os_family }}-{{ ansible_distribution_major_version }}.yml"
- "{{ role_path }}/vars/{{ ansible_distribution }}.yml"
- "{{ role_path }}/vars/{{ ansible_os_family }}.yml"
tags: wkhtmltopdf
- name: Install wkhtmltopdf
yum: name={{ wkhtmltopdf_package_url }} disable_gpg_check=True
when: ansible_os_family == 'RedHat'
tags: wkhtmltopdf

View File

@ -0,0 +1,3 @@
---
wkhtmltopdf_package_url: https://github.com/wkhtmltopdf/packaging/releases/download/{{ wkhtmltopdf_version }}/wkhtmltox-{{ wkhtmltopdf_version }}.centos8.x86_64.rpm