# How to Change Environment Variables when self-hosted NocoDB running as a service

**URL:** <https://community.nocodb.com/t/how-to-change-environment-variables-when-self-hosted-nocodb-running-as-a-service/1538>\
**Category:** Self-Host\
**Created:** [December 14, 2024, 8:06pm UTC](https://community.nocodb.com/t/how-to-change-environment-variables-when-self-hosted-nocodb-running-as-a-service/1538 "2024-12-14T20:06:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nocodb.ncgns](https://avatars.discourse-cdn.com/v4/letter/n/d2c977/32.png) [@nocodb.ncgns](https://community.nocodb.com/u/nocodb.ncgns)\
**Post date:** [December 14, 2024, 8:06pm UTC](https://community.nocodb.com/t/how-to-change-environment-variables-when-self-hosted-nocodb-running-as-a-service/1538/1 "2024-12-14T20:06:58Z")

</div>

I installed nocodb in an LXC container on a proxmox device using this Proxmox Helper script: [Proxmox VE Helper-Scripts](https://community-scripts.github.io/ProxmoxVE/scripts?id=nocodb).

NocoDB is running as a service: systemctl | grep noco \> “nocodb.service loaded active running nocodb”

When I try the Test Webhook button for a local webhook I get the following error “… is not allowed. Because, It is a private IP address.”

So, I’d like to set the NC\_ALLOW\_LOCAL\_HOOKS environment variable to true, however I’ve not been able to do that.

If I try printenv, no NocoDB environment variables including NC\_DB (a NocoDB mandatory environment variable) are defined.

However, I did try in vain adding NC\_ALLOW\_LOCAL\_HOOKS=true to the /etc/environment file, which then shows up in printenv after rebooting.

I found this post [How do I set environment variables on [Aug 09]](https://community.nocodb.com/t/how-do-i-set-environment-variables-on-aug-09/637) which implies the variables can be set through a web Gui, but the screenshot doesn’t look anything like what my web app looks like.

If I try find / -iname noco\*, the only directories found are:  
/usr/share/doc/mawk/examples/nocomment.awk  
/etc/systemd/system/multi-user.target.wants/nocodb.service  
/etc/systemd/system/nocodb.service  
/opt/nocodb  
/opt/nocodb/noco.db  
/opt/nocodb/nc/uploads/noco  
/opt/nocodb/nc/thumbnails/noco  
/opt/nocodb/nocodb  
/sys/fs/cgroup/system.slice/nocodb.service

I looked in /opt/nocodb, but didn’t find anything resembling a config file.

/opt/nocodb  
├── nc  
│ ├── thumbnails  
│ │ └── noco  
│ │ └── p1czez8szoqdxrl  
│ │ └── m9300kkx4srl6ck  
│ │ └── c2qcflp6guc1bv0  
│ │ └── large\_edc78837-0f01-444d-9d5d-8da981cf0797\_fMO4I.jpeg  
│ │ ├── card\_cover.jpg  
│ │ ├── small.jpg  
│ │ └── tiny.jpg  
│ └── uploads  
│ └── noco  
│ └── p1czez8szoqdxrl  
│ └── m9300kkx4srl6ck  
│ └── c2qcflp6guc1bv0  
│ └── large\_edc78837-0f01-444d-9d5d-8da981cf0797\_fMO4I.jpeg  
├── noco.db  
└── nocodb

I looked in /etc/systemd/system/multi-user.target.wants/nocodb.service and /etc/systemd/system/nocodb.service, but no envirnment variables are defined.

I looked in the directory /sys/fs/cgroup/system.slice/nocodb.service, but didn’t see any config files.

I’m out of ideas, so how do I set NC\_ALLOW\_LOCAL\_HOOKS == true?

---

<div class="post-metadata">

**Author:** ![Navi](https://avatars.discourse-cdn.com/v4/letter/n/3be4f8/32.png) [@Navi](https://community.nocodb.com/u/Navi)\
**Post date:** [December 16, 2024, 6:59am UTC](https://community.nocodb.com/t/how-to-change-environment-variables-when-self-hosted-nocodb-running-as-a-service/1538/2 "2024-12-16T06:59:33Z")

</div>

It will be a good idea to query in proxmox forums. Have no idea about it unfortunately.
