# External database ENV VARs not documented (external PG Port, external Redis ENV VARs)

**URL:** https://meta.discourse.org/t/external-database-env-vars-not-documented-external-pg-port-external-redis-env-vars/90879
**Category:** Self-hosting
**Created:** [June 27, 2018, 3:19pm UTC](https://meta.discourse.org/t/external-database-env-vars-not-documented-external-pg-port-external-redis-env-vars/90879 "2018-06-27T15:19:44Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [June 28, 2018, 1:45am UTC](https://meta.discourse.org/t/external-database-env-vars-not-documented-external-pg-port-external-redis-env-vars/90879/2 "2018-06-28T01:45:39Z")

</div>

You can see all of the possible global vars documented at:

> <https://github.com/discourse/discourse/blob/main/config/discourse_defaults.conf>

> You can pass in config from your environment, all the settings below are available.  
> Append DISCOURSE\_ and upper case the setting in ENV. For example:  
> to pass in db\_timeout of 200 you would use DISCOURSE\_DB\_TIMEOUT=200

---

_[View the full topic](https://meta.discourse.org/t/external-database-env-vars-not-documented-external-pg-port-external-redis-env-vars/90879)._
