readme
This commit is contained in:
parent
440b62c91f
commit
dd4d3ad642
1 changed files with 5 additions and 7 deletions
12
README.md
12
README.md
|
@ -11,21 +11,19 @@ Dependencies:
|
|||
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.
|
||||
Download `index.php` to webroot and set up
|
||||
permissions to `www-data` user.
|
||||
|
||||
```shell
|
||||
wget "https://gitlab.com/tavo-wasd/groff-web/-/archive/main/groff-web-main.tar.gz"
|
||||
tar -xvf groff-web-main.tar.gz
|
||||
cp -r groff-web-main/public /var/www/groff-web
|
||||
mkdir -p /var/www/groff-web
|
||||
wget -O /var/www/groff-web/index.php "https://gitlab.com/tavo-wasd/groff-web/-/raw/main/public/index.php"
|
||||
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
|
||||
wget -O /etc/nginx/sites-available/groff-web "https://gitlab.com/tavo-wasd/groff-web/-/raw/main/nginx.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
|
||||
systemctl reload nginx
|
||||
|
|
Loading…
Reference in a new issue