Skip to content

Commit

Permalink
[docs] Move and document logs (#1076)
Browse files Browse the repository at this point in the history
Rather than a single access log and no error logging, put the logs in
/var/log/gotosocial/, and document creating and owning that directory
  • Loading branch information
NoraCodes committed Nov 19, 2022
1 parent c964856 commit 2216f25
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions docs/installation_guide/binary.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions example/gotosocial.service
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2216f25

Please sign in to comment.