# Bootstrapping a discourse docker image with SSO URL as environment variable

**URL:** <https://meta.discourse.org/t/bootstrapping-a-discourse-docker-image-with-sso-url-as-environment-variable/85107>\
**Category:** SSO\
**Created:** [April 11, 2018, 7:05pm UTC](https://meta.discourse.org/t/bootstrapping-a-discourse-docker-image-with-sso-url-as-environment-variable/85107 "2018-04-11T19:05:11Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![shahidmir](https://avatars.discourse-cdn.com/v4/letter/s/9dc877/32.png) [@shahidmir](https://meta.discourse.org/u/shahidmir)\
**Post date:** [April 17, 2018, 1:36pm UTC](https://meta.discourse.org/t/bootstrapping-a-discourse-docker-image-with-sso-url-as-environment-variable/85107/6 "2018-04-17T13:36:47Z")

</div>

Hi Guys

sorry, seems like i wasnt clear in explaining what I needed.  
I am building a docker image of discourse and want to supply the site setting for the SSO URL via my docker build scripts.

So what I am now understanding after these responses is that only settings that are marked true for the “shadowed\_by\_global” setting can be set in the way I want.  
For other fields (including the SSO url) I either need to submit a PR to get the SSO field config updated so that i can be “shadowed”, or change my settings via the dashboard, or use the uploader suggested above?

Is this correct?

PS: My docker discourse project has a “discourse.conf” file which i believe is doing the settings in discourse e.g.

```
# username for smtp server
smtp_user_name = &lt;%= ENV['SMTP_USERNAME'] ? ENV['SMTP_USERNAME'] : '' %&gt;

```

Regards

---

_[View the full topic](https://meta.discourse.org/t/bootstrapping-a-discourse-docker-image-with-sso-url-as-environment-variable/85107)._
