# Environment Variables

**ROOT\_URL:** the URL under which titra is served. Could be http://localhost:3000 for a local instance or https://app.titra.io for a setup with reverse proxy and DNS records.

**MONGO\_URL**: the URL of the mongoDB backend (e.g. mongodb://localhost:27017/titra)

**MONGO\_OPLOG\_URL**: the URL pointing to the OPLOG of the mongoDB backend (e.g. mongodb://localhost:27017/local)

**MAIL\_URL:** The server reads from the *MAIL\_URL* environment variable to determine how to send mail. The *MAIL\_URL* should reference an [SMTP](https://en.wikipedia.org/wiki/Simple_Mail_Transfer_Protocol) server and use the form:

```wp-block-code
smtp://USERNAME:PASSWORD@HOST:PORT
```

**or**

```wp-block-code
smtps://USERNAME:PASSWORD@HOST:PORT
```

The smtp**s**:// form (the **s** is for “**secure**”) should be used if the **mail server requires TLS/SSL** (and does not use STARTTLS) and is most common on port 465. Connections which start unencrypted prior to being upgraded to TLS/SSL (using STARTTLS) typically use port 587 (and sometimes 25) and should use **smtp://**. For more information see the [Nodemailer](https://nodemailer.com/smtp/) docs

#### METEOR\_SETTINGS are Deprecated starting with titra version 0.18.0

Please use the new Globalsettings available for administrators through the Administration page.

<span class="has-inline-color has-cyan-bluish-gray-color">**METEOR\_SETTINGS**: the titra specific settings in JSON format, all settings have to belong to the “public” hierarchy. The available parameters are:</span>

<span class="has-inline-color has-cyan-bluish-gray-color">disablePublic: true/false – if set to true, projects can not be set as public</span>

<span class="has-inline-color has-cyan-bluish-gray-color">enableAnonymousLogins: true/false – if set to true, the /try path will be available allowing anonymous accounts to be created on the fly.</span>

<span class="has-inline-color has-cyan-bluish-gray-color">Below is an example for a METEOR\_SETTINGS environment variable value:</span>

```wp-block-code
{
  "public": {
   "disablePublic": "true",
   "enableAnonymousLogins": "true"
  }
}
```