# Settings at bootstrap

**URL:** https://meta.discourse.org/t/settings-at-bootstrap/110220
**Category:** Support
**Created:** [February 27, 2019, 8:47am UTC](https://meta.discourse.org/t/settings-at-bootstrap/110220 "2019-02-27T08:47:35Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![pontus](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@pontus](https://meta.discourse.org/u/pontus)
#### Post date: [February 27, 2019, 8:47am UTC](https://meta.discourse.org/t/settings-at-bootstrap/110220/1 "2019-02-27T08:47:35Z")

</div>

Hi,

Is there a recommended and supported way of setting site and plugin settings during the boostrap process, for example in app.yml. I can see some potential issues with that approach if autoscaling but I believe we can manage that.

Thanks,

Pontus

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [February 27, 2019, 12:47pm UTC](https://meta.discourse.org/t/settings-at-bootstrap/110220/2 "2019-02-27T12:47:58Z")

</div>

Some can be set via environment variables. See site\_settings.yml and discourse.conf (or similar) in the config directory.

Also, I have just developed an ansible module for managing site settings.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [April 2, 2022, 1:53am UTC](https://meta.discourse.org/t/settings-at-bootstrap/110220/3 "2022-04-02T01:53:42Z")

</div>



---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [April 2, 2022, 8:49pm UTC](https://meta.discourse.org/t/settings-at-bootstrap/110220/4 "2022-04-02T20:49:23Z")

</div>

You can now set all settings with an environment variable like DISCOURSE\_SETTING\_NAME. These get transferred into the discourse.conf file when the site boots.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [April 11, 2022, 12:00pm UTC](https://meta.discourse.org/t/settings-at-bootstrap/110220/5 "2022-04-11T12:00:31Z")

</div>

This topic was automatically closed after 8 days. New replies are no longer allowed.
