updated readme
This commit is contained in:
parent
6887ef6f79
commit
a97e36cd52
1 changed files with 13 additions and 3 deletions
16
README.md
16
README.md
|
@ -6,10 +6,11 @@ Minimal groff web frontend
|
||||||
## Try it out
|
## Try it out
|
||||||
|
|
||||||
Dependencies: `groff-base grap php-fpm`.
|
Dependencies: `groff-base grap php-fpm`.
|
||||||
Run the following command and visit http://0.0.0.0:8000 in your browser. (It will create a tmp directory!)
|
Run the following and visit http://0.0.0.0:8000 in your browser. (It will create a tmp directory!)
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
wget -qO - "https://gitlab.com/tavo-wasd/groff-web/-/raw/main/public/index.php" | php -S 0.0.0.0:8000
|
wget "https://gitlab.com/tavo-wasd/groff-web/-/raw/main/public/index.php"
|
||||||
|
php -S 0.0.0.0:8000
|
||||||
```
|
```
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
@ -32,12 +33,21 @@ chown -R www-data:www-data /var/www/groff-web
|
||||||
nginx setup.
|
nginx setup.
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
wget -O /etc/nginx/sites-available/groff-web "https://gitlab.com/tavo-wasd/groff-web/-/raw/main/nginx.conf"
|
wget -O /etc/nginx/sites-available/groff-web.conf "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
|
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/
|
||||||
systemctl reload nginx
|
systemctl reload nginx
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Remove
|
||||||
|
|
||||||
|
```shell
|
||||||
|
rm -r /var/www/groff-web
|
||||||
|
rm /etc/nginx/sites-available/groff-web.conf
|
||||||
|
rm /etc/nginx/sites-enabled/groff-web.conf
|
||||||
|
systemctl reload nginx
|
||||||
|
```
|
||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
|
|
||||||
Go to `/var/www/groff-web/index.php`, here you can:
|
Go to `/var/www/groff-web/index.php`, here you can:
|
||||||
|
|
Loading…
Reference in a new issue