Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

docs: Clarify how to use a remote server with custom db/usernames.

Alex Vandiver19f01b29896a
diff --git a/docs/production/postgresql.md b/docs/production/postgresql.md
index 981e1f01b41..f1839b810d0 100644
--- a/docs/production/postgresql.md
+++ b/docs/production/postgresql.md
@@ -28,35 +28,44 @@ stemming rules that the built-in dictionaries provide.
[fts]: ../subsystems/full-text-search.md
+#### Step 1: Choose database name and username
+
+Zulip defaults to a database user named `zulip` and a database named `zulip`.
+It does support alternate values for those -- for instance, if required by
+convention of your central database server.
+
#### Step 1: Set up Zulip
Follow the [standard install instructions](install.md), with modified `install`
-arguments:
+arguments -- providing an updated `--puppet-classes`, as well as the database
+and user names, and the version of the remote PostgreSQL server.
```bash
./zulip-server-*/scripts/setup/install --certbot \
--email=YOUR_EMAIL --hostname=YOUR_HOSTNAME \
--puppet-classes=zulip::profile::standalone_nodb,zulip::process_fts_updates \
+ --postgresql-database-name=zulip \
+ --postgresql-database-user=zulip \
--postgresql-version=YOUR_SERVERS_POSTGRESQL_VERSION
```
-#### Step 2: Create the PostgreSQL database
+#### Step 3: Create the PostgreSQL database
Access an administrative `psql` shell on your PostgreSQL database, and
-run the commands in `scripts/setup/create-db.sql` to:
+run the commands in `scripts/setup/create-db.sql`. This will:
- Create a database called `zulip` with `C.UTF-8` collation.
- Create a user called `zulip` with full rights on that database.
-If you cannot run that SQL directly, you should perform the equivalent actions
-in the service's web UI.
+If you cannot run that SQL directly, or need to use different database
+or usernames, you should perform the equivalent actions.
Depending on how authentication works for your PostgreSQL installation, you may
also need to set a password for the Zulip user, generate a client certificate,
or similar; consult the documentation for your database provider for the
available options.
-#### Step 3: Configure Zulip to use the PostgreSQL database
+#### Step 4: Configure Zulip to use the PostgreSQL database
In `/etc/zulip/settings.py` on your Zulip server, configure the
following settings with details for how to connect to your PostgreSQL