qrcode.chapril.org/README.md

81 lines
2.6 KiB
Markdown
Raw Normal View History

2020-03-15 21:22:53 +01:00
# ![](themes/dark/icons/32.png) LibreQR
2019-08-13 21:17:08 +02:00
2020-10-31 16:51:50 +01:00
[Lire ceci en français](README_fr.md)
2019-08-13 21:17:08 +02:00
2020-10-31 16:51:50 +01:00
A PHP Web interface for generating QR codes.
2019-08-13 21:17:08 +02:00
2020-10-31 16:51:50 +01:00
## Demo
2019-08-13 21:17:08 +02:00
2020-10-31 16:51:50 +01:00
A LibreQR instance is available at <https://qr.antopie.org>.
2019-08-13 21:17:08 +02:00
## Installation
2020-10-31 16:51:50 +01:00
### Generic
Just place this source code in a Web server with PHP.
2021-01-01 16:44:36 +01:00
`wget https://code.antopie.org/miraty/libreqr/archive/1.3.0.zip`
2019-08-14 17:12:36 +02:00
2020-10-31 16:51:50 +01:00
GD extension is required.
2019-08-13 21:17:08 +02:00
2020-10-31 16:51:50 +01:00
`apt install php7.3-gd`
LibreQR need writing rights on the `css/` directory.
2020-10-31 16:51:50 +01:00
```
chown -R www-data:www-data /var/www/libreqr/css
chmod -R 600 /var/www/libreqr/css
2020-10-31 16:51:50 +01:00
```
2019-08-13 21:17:08 +02:00
#### Security hardening
Your HTTP server can reply the following headers:
```
Content-Security-Policy: default-src 'none'; img-src 'self' data:; style-src 'self'; frame-ancestors 'none'; form-action 'self';
Referrer-Policy: no-referrer
```
2019-08-14 17:12:36 +02:00
### YunoHost
2020-10-31 16:51:50 +01:00
There is [a package](https://code.antopie.org/miraty/qr_ynh/) for [YunoHost](https://yunohost.org/).
For historical reasons, LibreQR is technically named `qr` in YunoHost.
2020-10-31 16:51:50 +01:00
You can install it from the WebAdmin or with this command :
2019-08-14 17:12:36 +02:00
```
2020-03-23 14:51:46 +01:00
sudo yunohost app install qr
2019-08-14 17:12:36 +02:00
```
2020-10-31 16:51:50 +01:00
## Themes
2019-08-13 21:17:08 +02:00
Themes are located in `themes/*`, the default theme is in `themes/libreqr/`.
You can customize your LibreQR instance look by changing the colors in `theme.php`, the logo in `logo.less` or the icons in `icons/<size>.png` (then list the sizes in `theme.php`).
2019-08-13 21:17:08 +02:00
2020-10-31 16:51:50 +01:00
## Contribute
2020-03-23 14:51:46 +01:00
2020-10-31 16:51:50 +01:00
If you want to report a bug, you can open an issue at <https://code.antopie.org/miraty/libreqr/issues> after creating an account (prefered method) or contact me in another way.
2020-03-23 14:51:46 +01:00
## Contact
2020-10-31 16:51:50 +01:00
If you want to contact me, for instance to report a bug or ask me a question about installing or using LibreQR, you can get my contact details on <https://miraty.antopie.org>.
2020-03-23 14:51:46 +01:00
2020-10-31 16:51:50 +01:00
## Libraries
2019-08-13 21:17:08 +02:00
2020-10-31 16:51:50 +01:00
This source code includes:
2019-08-13 21:17:08 +02:00
2021-11-01 18:08:42 +01:00
* [CodeItNow Barcode & QrCode Generator](https://github.com/codeitnowin/barcode-generator) to generate QR codes
* [Less.php](https://github.com/wikimedia/less.php) to compile [Less](http://lesscss.org)
2019-08-13 21:17:08 +02:00
2020-10-31 16:51:50 +01:00
## License
2019-08-13 21:17:08 +02:00
2021-07-11 14:00:35 +02:00
[AGPLv3+](https://code.antopie.org/miraty/libreqr/src/branch/main/LICENSE)
2019-08-13 21:17:08 +02:00
2020-10-31 16:51:50 +01:00
LibreQR is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
2019-08-13 21:17:08 +02:00
2020-10-31 16:51:50 +01:00
LibreQR 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 Affero General Public License for more details.
2019-08-13 21:17:08 +02:00
2020-10-31 16:51:50 +01:00
You should have received a copy of the GNU Affero General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.