# Where the admin config settings are stored

**URL:** <https://forum.genieacs.com/t/where-the-admin-config-settings-are-stored/5309>\
**Category:** Uncategorized\
**Created:** [April 15, 2024, 1:13pm UTC](https://forum.genieacs.com/t/where-the-admin-config-settings-are-stored/5309 "2024-04-15T13:13:45Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![cesanek](https://avatars.discourse-cdn.com/v4/letter/c/b2d939/32.png) [@cesanek](https://forum.genieacs.com/u/cesanek)\
**Post date:** [April 15, 2024, 1:13pm UTC](https://forum.genieacs.com/t/where-the-admin-config-settings-are-stored/5309/1 "2024-04-15T13:13:45Z")

</div>

Hi,  
I’d like to describe my specific problem, which is why I’m interested in where the GenieACS config parameters are stored. My GenieACS is running on temporary VPS, which restarts in case of a crash but the data is not persistent. I want to ensure persistence for these configuration properties.

However, if it were possible to set cwmp.auth AUTH(“username”, “password”) via API, it would also solve my problem.

Thank you in advance for any advice."

 ![genieacs_config](https://canada1.discourse-cdn.com/flex035/uploads/genieacs/original/2X/e/ea9bce3b74e6ddca363a7c3e6d9f868c209fb8ef.png)

---

<div class="post-metadata">

**Author:** ![akcoder](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/akcoder/32/11_2.png) [@akcoder](https://forum.genieacs.com/u/akcoder)\
**Post date:** [April 15, 2024, 4:12pm UTC](https://forum.genieacs.com/t/where-the-admin-config-settings-are-stored/5309/2 "2024-04-15T16:12:54Z")

</div>

Configuration is stored in the MongoDB. You can set the config values via the same API the UI uses.  
You would do a PUT to api/config/cwmp.auth with a payload of JSON looking like this:

```json
{ "value": "AUTH(username, password) OR AUTH(\"someUsername\", \"somePassword\")" }

```

---

<div class="post-metadata">

**Author:** ![cesanek](https://avatars.discourse-cdn.com/v4/letter/c/b2d939/32.png) [@cesanek](https://forum.genieacs.com/u/cesanek)\
**Post date:** [April 16, 2024, 8:43am UTC](https://forum.genieacs.com/t/where-the-admin-config-settings-are-stored/5309/3 "2024-04-16T08:43:25Z")

</div>

Thank you for your response.

I’m not quite sure how to apply this as a curl command. Do you think you could give an example how to exactly setup up these values?

I expected something like that:

```auto
curl -i 'http://localhost:7557/api/config/cwmp.auth' -X PUT --data '{"value": "AUTH(olttest, somePassword) OR AUTH(\"olttest\", \"somePassword\")"}'

```

I’m missing something unfortunately.

---

<div class="post-metadata">

**Author:** ![akcoder](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/akcoder/32/11_2.png) [@akcoder](https://forum.genieacs.com/u/akcoder)\
**Post date:** [April 16, 2024, 4:17pm UTC](https://forum.genieacs.com/t/where-the-admin-config-settings-are-stored/5309/4 "2024-04-16T16:17:43Z")

</div>

```auto
curl -i 'https://localhost/api/config/cwmp.auth' -X PUT --data '{"value": "AUTH(username, password) OR AUTH(\'olttest\', \'somePassword\')"}'

```

You don’t PUT to the NBI (7557), but the UI (port 80, 443, or 3000 - depending on how you have it configured).

The first username, password values are unquoted for a reason. They are evaluated as variables.

---

<div class="post-metadata">

**Author:** ![crtormen](https://avatars.discourse-cdn.com/v4/letter/c/77aa72/32.png) [@crtormen](https://forum.genieacs.com/u/crtormen)\
**Post date:** [October 21, 2024, 5:00pm UTC](https://forum.genieacs.com/t/where-the-admin-config-settings-are-stored/5309/5 "2024-10-21T17:00:15Z")

</div>

Sorry to bring this “not so old” topic to live again, but we are trying to define some configs for our clients on deployment, and as you told before, some configs are defined directly in MongoDB.  
My question is, there is a way to make this customized settings to be applied to MongoDB not being through UI? I really appreciate any help you can provide.

---

<div class="post-metadata">

**Author:** ![akcoder](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/akcoder/32/11_2.png) [@akcoder](https://forum.genieacs.com/u/akcoder)\
**Post date:** [October 21, 2024, 5:18pm UTC](https://forum.genieacs.com/t/where-the-admin-config-settings-are-stored/5309/6 "2024-10-21T17:18:02Z")

</div>

Every option can be defined via the GenieACS-UI. There is nothing (that I’m aware of) that can only be defined by directly manipulating the Mongo db directly that can’t be changed/defined via the UI.

---

<div class="post-metadata">

**Author:** ![crtormen](https://avatars.discourse-cdn.com/v4/letter/c/77aa72/32.png) [@crtormen](https://forum.genieacs.com/u/crtormen)\
**Post date:** [October 21, 2024, 7:06pm UTC](https://forum.genieacs.com/t/where-the-admin-config-settings-are-stored/5309/7 "2024-10-21T19:06:17Z")

</div>

Right. We only didn’t like to make it manually through UI, to be less error-prone.  
I saw that Genie tries to read config.json file, even it being deprecated since version 1.2.0, but the config doesn’t change when I create it and restart server.
