More readme.md stuff for the install section.

This commit is contained in:
Auke Kok 2017-11-26 11:46:19 -08:00
parent f5a6228100
commit ca8bd77c7f

View File

@ -63,6 +63,14 @@ Run `make` in this folder to create the binary `mtschemsrv`.
Several example config and service units are provided as an example
on how to deploy this service.
It is recommended to use the mtmediasrv.service and cp that file to
/etc/systemd/system, and then enable it with `systemctl daemon-reload;
systemctl enable mtmediasrv`.
Copy the `mtmediasrv.yaml` file to `/etc/`, and configure the paths
to point to the right locations. Your webroot should be empty, as
it will be filled by the daemon automatically.
Once you have configured your web server properly so that it serves
up the static content files by hash, point the mtmediasrv to the
same folder and it will talk to minetest clients that request media
@ -75,6 +83,9 @@ Copy and edit the `mtmediasrv.yaml` file and point it at the proper
webroot, socket path, and mediapath entries. Place it in /etc/ or
~/.config/.
Once everything is in place, do `systemctl start mtmediasrv` and check
the output of `journalctl -u mtmediasrv` for errors and log output.
### logging