# Redis

## Simple server

A single Redis server is recommended, in self-hosted setups anything more is overkill. You can configure this through the environment variable `REDIS_URL`which should point to the fully qualified url of the Redis installation, e.g: `redis://redis:6379`


## Advanced

If your Redis connection requires more configuration it can be provided through a base64 encoded JSON connection [options](https://redis.github.io/ioredis/index.html#RedisOptions) object. Using this method you can configure multiple hosts, for example:

```json
{"sentinels": [{"host": "sentinel-0","port":26379}, {"host": "sentinel-1","port":26379}],"name": "mymaster"}
```


Can be base64 encoded as the following config:

```bash
REDIS_URL=ioredis://eyJzZW50aW5lbHMiOlt7Imhvc3QiOiJzZW50aW5lbC0wIiwicG9ydCI6MjYzNzl9LHsiaG9zdCI6InNlbnRpbmVsLTEiLCJwb3J0IjoyNjM3OX1dLCJuYW1lIjoibXltYXN0ZXIifQ==
```


Available options are documented in [ioredis](https://redis.github.io/ioredis/index.html#RedisOptions).

---

**Documents**

- [License restrictions](https://docs.getoutline.com/s/hosting/doc/license-restrictions-f9aq6uEL3H)
- [Requirements](https://docs.getoutline.com/s/hosting/doc/requirements-ULdYnwi4wG)
- [Installation methods](https://docs.getoutline.com/s/hosting/doc/installation-methods-pSvgz9j0QC)
- [Configuration](https://docs.getoutline.com/s/hosting/doc/configuration-509J4lAzjo)
- [Business + Enterprise](https://docs.getoutline.com/s/hosting/doc/business-enterprise-rv0715NxO3)
- [Backups](https://docs.getoutline.com/s/hosting/doc/backups-KZtPOADCHG)
- [Troubleshooting](https://docs.getoutline.com/s/hosting/doc/troubleshooting-HXckrzCqDJ)