Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Theodlz committed Feb 9, 2024
1 parent 6508e2f commit 06ade56
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions doc/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Clone that application, and then proceed with the following instructions.
### On macOS

- Using [Homebrew](http://brew.sh/): `brew install supervisor postgresql node`
- If you want to use [brotli compression](https://en.wikipedia.org/wiki/Brotli) with NGINX (better compression rates for the frontend), you can install NGINX with the `ngx_brotli` module with this command: `brew tap denji/nginx && brew install nginx-full --with-brotli`. *If you already had NGINX installed, you may need to uninstall it first with `brew unlink nginx`.*Otherwise, you can install NGINX normally with `brew install nginx`.
- If you want to use [brotli compression](https://en.wikipedia.org/wiki/Brotli) with NGINX (better compression rates for the frontend), you can install NGINX with the `ngx_brotli` module with this command: `brew tap denji/nginx && brew install nginx-full --with-brotli`. _If you already had NGINX installed, you may need to uninstall it first with `brew unlink nginx`._ Otherwise, you can install NGINX normally with `brew install nginx`.
- Start the postgresql server:
- to start automatically at login: `brew services start postgresql`
- to start manually: `pg_ctl -D /usr/local/var/postgres start`
Expand All @@ -40,7 +40,7 @@ See [below](#configuration) for more information on modifying the baselayer conf
- Using `apt-get`:
`sudo apt-get install supervisor postgresql libpq-dev npm nodejs-legacy`

- If you want to run NGINX as is (without brotli), you can simply install it with `sudo apt-get install nginx`. If you want to use brotli, you will need to install nginx and the brotli module from another source with:
If you want to use [brotli compression](https://en.wikipedia.org/wiki/Brotli) with NGINX (better compression rates for the frontend), you have to install NGINX and the brotli module from another source with:

```
sudo apt remove -y nginx nginx-common nginx-core
Expand All @@ -49,6 +49,8 @@ See [below](#configuration) for more information on modifying the baselayer conf
sudo apt install -y nginx libnginx-mod-brotli
```
Otherwise, you can install NGINX normally with `sudo apt-get install nginx`.
- It may be necessary to configure your database permissions: at
the end of your `pg_hba.conf` (typically in `/etc/postgresql/13.3/main` or `/var/lib/pgsql/data`),
add the following lines and restart PostgreSQL
Expand Down

0 comments on commit 06ade56

Please sign in to comment.