# Adding custom settings

**URL:** https://meta.discourse.org/t/adding-custom-settings/42654
**Category:** Development
**Created:** [April 16, 2016, 3:45pm UTC](https://meta.discourse.org/t/adding-custom-settings/42654 "2016-04-16T15:45:10Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![jamesarobbo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jamesarobbo/32/121843_2.png) [@jamesarobbo](https://meta.discourse.org/u/jamesarobbo)
#### Post date: [April 16, 2016, 3:45pm UTC](https://meta.discourse.org/t/adding-custom-settings/42654/1 "2016-04-16T15:45:10Z")

</div>

Hi

Is it possible to add custom settings to Discourse and if so where should i do it?

For example i want to add getsentry and need to store its DSN somewhere.

cheers

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [April 16, 2016, 3:47pm UTC](https://meta.discourse.org/t/adding-custom-settings/42654/2 "2016-04-16T15:47:56Z")

</div>

> [@jamesarobbo](#):
>
> getsentry

Discourse [example.com/logs](http://example.com/logs) already have every back and front erros logged.

But if you really want this you can add site settings with a plugin.

---

<div class="post-metadata">

### Author: ![jamesarobbo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jamesarobbo/32/121843_2.png) [@jamesarobbo](https://meta.discourse.org/u/jamesarobbo)
#### Post date: [April 16, 2016, 3:52pm UTC](https://meta.discourse.org/t/adding-custom-settings/42654/3 "2016-04-16T15:52:58Z")

</div>

thanks, if the logs are in the app and the app crashes how is that useful as i wouldn’t be able to see them?

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [April 16, 2016, 4:08pm UTC](https://meta.discourse.org/t/adding-custom-settings/42654/4 "2016-04-16T16:08:26Z")

</div>

> [@jamesarobbo](#):
>
> thanks, if the logs are in the app and the app crashes how is that useful as i wouldn’t be able to see them?

So you want to use getsentry more like a pingdom service, I see.

---

<div class="post-metadata">

### Author: ![Sander78](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sander78/32/296615_2.png) [@Sander78](https://meta.discourse.org/u/Sander78)
#### Post date: [April 16, 2016, 4:12pm UTC](https://meta.discourse.org/t/adding-custom-settings/42654/5 "2016-04-16T16:12:28Z")

</div>

Logs are also in `/var/discourse/shared/`

---

<div class="post-metadata">

### Author: ![jamesarobbo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jamesarobbo/32/121843_2.png) [@jamesarobbo](https://meta.discourse.org/u/jamesarobbo)
#### Post date: [April 16, 2016, 4:21pm UTC](https://meta.discourse.org/t/adding-custom-settings/42654/6 "2016-04-16T16:21:09Z")

</div>

cheers, so you’re saying the only way to add something as simple as one setting is to create a plugin?

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [April 16, 2016, 6:19pm UTC](https://meta.discourse.org/t/adding-custom-settings/42654/7 "2016-04-16T18:19:21Z")

</div>

> [@codinghorror](#):
>
> In general Discourse is not a “configure this arbitrary stuff to appear in this web panel” CMS type of system; it’s more of a purpose built system for discussion.

Discourse isn’t a library, framework or engine to build websites, is a forum software. So if you want to change the normal behavior it’s usually trough a plugin. A lot of things have site settings, you can customize a lot without touching code, but not all.

But I think that expecting a plugin to [add a gem and custom code](https://getsentry.com/for/rails/) is reasonable.

---

<div class="post-metadata">

### Author: ![jamesarobbo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jamesarobbo/32/121843_2.png) [@jamesarobbo](https://meta.discourse.org/u/jamesarobbo)
#### Post date: [April 18, 2016, 10:56am UTC](https://meta.discourse.org/t/adding-custom-settings/42654/8 "2016-04-18T10:56:28Z")

</div>

brilliant, thanks. I’ve added a sentry initializer file to the initializers folder, will this be picked up when the app starts?
