2017-12-31 05:28:03 +01:00
|
|
|
# Quick Configuration
|
|
|
|
|
|
|
|
```sh
|
|
|
|
cp /opt/go/src/github.com/FreifunkBremen/yanic/config_example.toml /etc/yanic.conf
|
|
|
|
```
|
|
|
|
|
|
|
|
# Quick configuration
|
2017-12-05 23:17:49 +01:00
|
|
|
For an easy startup you only need to edit the `[[respondd.interfaces]]` in section
|
2017-12-31 05:28:03 +01:00
|
|
|
`[respondd]` in file `/etc/yanic.conf`.
|
|
|
|
|
|
|
|
Then create the following files and folders:
|
|
|
|
```sh
|
|
|
|
adduser --system yanic --home /var/lib/yanic
|
|
|
|
mkdir -p /var/lib/yanic
|
|
|
|
mkdir -p /var/www/html/meshviewer/data
|
|
|
|
touch /var/log/yanic.log
|
|
|
|
chown yanic /var/log/yanic.log /var/lib/yanic /var/www/html/meshviewer/data
|
|
|
|
```
|
|
|
|
|
|
|
|
#### Standalone
|
|
|
|
If you like to run a standalone meshviewer, just set `enable` in section
|
|
|
|
`[webserver]` to `true`.
|
|
|
|
|
|
|
|
##### Configure the [meshviewer](https://github.com/ffrgb/meshviewer):
|
|
|
|
set `dataPath` in `config.json` to `/data/` and make the `build` directory
|
|
|
|
accessible under `/var/www/html/meshviewer`.
|
|
|
|
|
|
|
|
#### With webserver (Apache, nginx)
|
|
|
|
The meshviewer needs the output files like `nodes_path` and `graph_path` inside
|
|
|
|
the same directory as the `dataPath`. Change the path in the section
|
|
|
|
`[meshviewer]` accordingly.
|