more doc
This commit is contained in:
parent
f5800813bd
commit
ee48e82ba1
1 changed files with 14 additions and 0 deletions
14
README.md
14
README.md
|
@ -5,12 +5,26 @@ Minimal groff web frontend
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
|
Dependencies:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
apt install -y groff-base grap nginx php-fpm
|
apt install -y groff-base grap nginx php-fpm
|
||||||
|
```
|
||||||
|
|
||||||
|
Download and extract files. Then,
|
||||||
|
Copy web root and set up permissions to `www-data` user
|
||||||
|
so PDFs can be generated.
|
||||||
|
|
||||||
|
```shell
|
||||||
wget "https://gitlab.com/tavo-wasd/groff-web/-/archive/main/groff-web-main.tar.gz"
|
wget "https://gitlab.com/tavo-wasd/groff-web/-/archive/main/groff-web-main.tar.gz"
|
||||||
tar -xvf groff-web-main.tar.gz
|
tar -xvf groff-web-main.tar.gz
|
||||||
cp -r groff-web-main/public /var/www/groff-web
|
cp -r groff-web-main/public /var/www/groff-web
|
||||||
chown -R www-data:www-data /var/www/groff-web
|
chown -R www-data:www-data /var/www/groff-web
|
||||||
|
```
|
||||||
|
|
||||||
|
nginx setup.
|
||||||
|
|
||||||
|
```shell
|
||||||
cp groff-web-main/nginx.conf /etc/nginx/sites-available/groff-web.conf
|
cp groff-web-main/nginx.conf /etc/nginx/sites-available/groff-web.conf
|
||||||
sed -i 's/groff.example.org/MY.DOMAIN.COM/' /etc/nginx/sites-available/groff-web.conf
|
sed -i 's/groff.example.org/MY.DOMAIN.COM/' /etc/nginx/sites-available/groff-web.conf
|
||||||
ln -s /etc/nginx/sites-available/groff-web.conf /etc/nginx/sites-enabled
|
ln -s /etc/nginx/sites-available/groff-web.conf /etc/nginx/sites-enabled
|
||||||
|
|
Loading…
Reference in a new issue