diff --git a/doc/setup.md b/doc/setup.md index bc7be2d..6de7556 100644 --- a/doc/setup.md +++ b/doc/setup.md @@ -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` @@ -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 @@ -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