Skip to content
Extraits de code Groupes Projets
README.md 2,03 ko
Newer Older
nono's avatar
nono a validé
# HedgeDocs Role
nono's avatar
nono a validé

> The purpose of this role is to setup HedgeDocs pad service.
## Dependencies
[Official documentation](https://github.com/hedgedoc/hedgedoc/blob/master/docs/setup/manual-setup.md)
nono's avatar
nono a validé

This service has been designed for Debian GNU/Linux 10.
nono's avatar
nono a validé

1. It will install dependencies required to run the service. You just have to fill variables described just below into your configuration file:
nono's avatar
nono a validé

- Node.js 10.13+
- PostgreSQL
- NPM
nono's avatar
nono a validé
- Yarn

2. Please install postgresql module as well: https://docs.ansible.com/ansible/latest/collections/community/postgresql
3. You will have to manage SSL configuration on your own by using Let's Encrypt or ZeroSSL. If you don't know the path to save your keys, please have a look to the nginx configuration file.
## Variables
Please look at variables from this file `vars/main.yml`
nono's avatar
nono a validé
## Example Playbook
nono's avatar
nono a validé
    - hosts: hedgedocs-server
nono's avatar
nono a validé
         - { role: hedgedocs-pad-lqdn,
nono's avatar
nono a validé
             hedgedoc_version: "1.7.0-rc2"
             service_hedgedocs_domain : "pad.test.lqdn.fr"
             hedgedoc_db_name : hedgedocs-user
             hedgedoc_db_user : hedgedocs
             hedgedoc_sql_password : "{{ vault_hedgedoc_sql_password }}"
             hedgedoc_session_secret : "{{ vault_hedgedoc_session_secret }}"
nono's avatar
nono a validé
         }
nono's avatar
nono a validé
## Licence

hedgedocs-lqdn
Copyright (C) 2021  nono

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
nono's avatar
nono a validé
You should have received a copy of the GNU General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>.
nono's avatar
nono a validé
## Author Information
------------------

Written by nono <np@laquadrature.net> in 2021, for La Quadrature du Net ( lqdn.fr ).