mirror of
https://github.com/LibreSign/libresign.git
synced 2025-12-18 05:20:45 +01:00
No description
| .github | ||
| .tx | ||
| appinfo | ||
| cfssl | ||
| docs | ||
| dsv | ||
| img | ||
| l10n | ||
| lib | ||
| src | ||
| templates | ||
| tests | ||
| .eslintignore | ||
| .eslintrc.js | ||
| .gitattributes | ||
| .gitignore | ||
| .l10nignore | ||
| .npmignore | ||
| .php_cs.dist | ||
| .prettierrc | ||
| babel.config.js | ||
| changelog-linker.php | ||
| CHANGELOG.md | ||
| composer.json | ||
| composer.lock | ||
| cypress.json | ||
| jest.config.js | ||
| LICENSE | ||
| Makefile | ||
| package-lock.json | ||
| package.json | ||
| phpunit.xml | ||
| README.md | ||
| stylelint.config.js | ||
| webpack.dev.js | ||
| webpack.prod.js | ||
LibreSign
Nextcloud app to sign PDF documents.
At the moment file signature requests must be requested via webhook. Read the documentation for more information.
Setup
Java and JSignPDF
Add the follow to Nextcloud PHP container Dockerfile
# Install Java and JsignPDF
RUN apt-get update # Only include this line if necessary
RUN mkdir -p /usr/share/man/man1
RUN apt-get install -y default-jre unzip
RUN curl -OL https://sourceforge.net/projects/jsignpdf/files/stable/JSignPdf%201.6.4/JSignPdf-1.6.4.zip \
&& unzip JSignPdf-1.6.4.zip -d /opt \
&& rm JSignPdf-1.6.4.zip
With CFSS server
Don't is necessary if you use a docker setup
Up a cfssl server using this code:
https://github.com/cloudflare/cfssl
The URL of server you will use in Admin settings
With docker-compose
- Create a folder named cfssl in the same folder as your
docker-compose.ymlfile. This folder will be used on one volume of the cfssl service. - put the file
/cfssl/entrypoint.shincfsslfolder - Add the volume
./cfssl:/cfsslin Nextcloud php service - Create a new server using the following code in your
docker-compose.ymlfile:
cfssl:
image: cfssl/cfssl
volumes:
- ./cfssl:/cfssl
working_dir: /cfssl
entrypoint: /bin/bash
command:
- /cfssl/entrypoint.sh
Admin settings
Go to Settings > LibreSign and fill the necessary values for root certificate:
CN: CommonName
OU: OrganizationalUnit
O: Organization
C: CountryName
API: http://cfssl:8888/api/v1/cfssl/
Config path: /cfssl/
Go to Settings > Basic Settings and configure email settings. Is mandatory.
Integrations
- GLPI: Plugin to sign GLPI tickets
Full documentation
Contributing
Feel free to submit Github Issues or pull requests.
The documentation website is build from the docs folder with vuepress.
To start front and backend development environment
make serve
To build documentation
make docs
To run PHPUnit
make test
Read more in composer.json scripts section