BookStack
| Status | Production |
| Supported distro | CentOS 7/8 |
This roles deploys the BookStack application
Backend server
Sample backend server
httpd_ansible_vhosts:
- name: docs.example.org
document_root: /opt/bookstack_1/app/public
bookstack_public_url: https://docs.example.org
bookstack_web_alias: False
bookstack_settings:
AUTH_METHOD: saml2
SAML2_NAME: EXAMPLE
SAML2_DISPLAY_NAME_ATTRIBUTES: cn
SAML2_EXTERNAL_ID_ATTRIBUTE: principal
SAML2_IDP_ENTITYID: https://sso.example.org/saml/metadata
SAML2_AUTOLOAD_METADATA: 'false'
SAML2_IDP_SSO: https://sso.example/saml/singleSignOn
SAML2_IDP_x509: MIICpjCCAY6gAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
SAML2_USER_TO_GROUPS: 'true'
SAML2_GROUP_ATTRIBUTE: groups
SAML2_REMOVE_FROM_GROUPS: 'true'
DRAWIO: https://draw.example.org/?embed=1&proto=json&spin=1
Reverse proxy
Sample reverse proxy config, using the nginx role
nginx_vhosts:
# BookStack
- name: docs.fws.fr
allowed_methods: [GET,HEAD,POST,OPTIONS,PUT,DELETE]
csp: >-
default-src 'self' 'unsafe-inline' blob:;
style-src-elem 'self' 'unsafe-inline' data:;
img-src 'self' data: blob: https://stats.example.org;
script-src 'self' 'unsafe-inline' 'unsafe-eval' https://stats.example.org blob:;
font-src 'self' data:;
frame-src https://sso.example.org https://draw.example.org
src_ip:
- "{{ trusted_ip }}"
Pas de commentaires