summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Leonora Tindall <nora@nora.codes>2022-11-19 03:06:37 -0600
committerLibravatar GitHub <noreply@github.com>2022-11-19 10:06:37 +0100
commit2216f253c18491b01efce09d00c5f1962dd74c96 (patch)
tree2999b4764f26cce8768169d481fc2b5b0261125c
parent[docs] Remove trailing / from proxy_pass for nginx (#1077) (diff)
downloadgotosocial-2216f253c18491b01efce09d00c5f1962dd74c96.tar.xz
[docs] Move and document logs (#1076)
Rather than a single access log and no error logging, put the logs in /var/log/gotosocial/, and document creating and owning that directory
-rw-r--r--docs/installation_guide/binary.md6
-rw-r--r--example/gotosocial.service4
2 files changed, 5 insertions, 5 deletions
diff --git a/docs/installation_guide/binary.md b/docs/installation_guide/binary.md
index 14569bf52..b72790774 100644
--- a/docs/installation_guide/binary.md
+++ b/docs/installation_guide/binary.md
@@ -4,10 +4,10 @@ This is the binary installation guide for GoToSocial. It is assumed that you alr
## 1: Prepare VPS
-In a terminal on the VPS or your homeserver, make the directory that GoToSocial will run from, the directory it will use as storage, and the directory it will store LetsEncrypt certificates in:
+In a terminal on the VPS or your homeserver, make the directory that GoToSocial will run from, the directory it will use as storage, the directory it will store LetsEncrypt certificates in, and the directory it will store logs in:
```bash
-mkdir /gotosocial && mkdir /gotosocial/storage && mkdir /gotosocial/storage/certs
+mkdir /gotosocial && mkdir /gotosocial/storage && mkdir /gotosocial/storage/certs && mkdir /var/log/gotosocial
```
If you don't have root permissions on the machine, use something like `~/gotosocial` instead.
@@ -118,7 +118,7 @@ sudo usermod -a -G gotosocial gotosocial
Then make them the owner of your GoToSocial installation since they will need to read and write in it.
```bash
-sudo chown -R gotosocial:gotosocial /gotosocial
+sudo chown -R gotosocial:gotosocial /gotosocial /var/log/gotosocial
```
You can find a `gotosocial.service` file in the `example` folder on [github](https://raw.githubusercontent.com/superseriousbusiness/gotosocial/main/example/gotosocial.service) or your installation.
diff --git a/example/gotosocial.service b/example/gotosocial.service
index 297251476..d3da72a84 100644
--- a/example/gotosocial.service
+++ b/example/gotosocial.service
@@ -17,8 +17,8 @@ Restart=on-failure
ExecStart=/gotosocial/gotosocial --config-path config.yaml server start
WorkingDirectory=/gotosocial
-StandardOutput=append:/var/log/gotosocial.log
-StandardError=inherit
+StandardOutput=append:/var/log/gotosocial/access.log
+StandardError=append:/var/log/gotosocial/error.log
# Sandboxing options to harden security