Accessing configuration parameter from server-side Lua script

Hi,

Is it possible somehow to load for example orthanc.json configuration file and read parameter from that file inside server-side Lua script?

My goal is, if this is possible, to define new custom parameter, and read it from server-side Lua script:

{
“AzureSASToken” : “SharedAccessToken …value…”,
//…
}

Thanks,
Vedran

Hello,

You are probably looking for Lua function “GetOrthancConfiguration()”:
https://book.orthanc-server.com/users/lua.html#general-purpose-functions

HTH,
Sébastien-

Ahhh, yes! I remember that now. I will check it out …
Thanks,
Vedran