Configuration options for Orthanc plugins

Help please write the correct options in the configuration.json for plugin DICOMweb and WebViewer

If i use the example of the site, when you start the server gives an error.

<i>{
  "Name" : "MyOrthanc",
  [...]
  "Plugins" : [
    "/home/user/OrthancWebViewer/Build/libOrthancWebViewer.so"
  ],
  [...]
  "WebViewer" : {
    "CachePath" : "WebViewerCache",
    "CacheSize" : 10,
    "Threads" : 4
  }
}</i>

Share please correct example entry in your configuration file.

You have to start from the default configuration file:
https://orthanc.chu.ulg.ac.be/book/users/configuration.html

Then modify it according to what is written on the Web page for the two plugins. The syntax “[…]” means to take the content of the default configuration.

Obviously, you must change the path in the “Plugins” option to reflect the actual path to the shared library.

This is sample from my working configuration:

“Plugins” : [
“/home/pacs/Orthanc/libOrthancDicomWeb.so”, “/home/pacs/Orthanc/libOrthancWebViewer.so”
],

if i add stroke:

<i>[...]
  "WebViewer" : {
    "CachePath" : "WebViewerCache",
    "CacheSize" : 10,
    "Threads" : 4</i>

My server not start.

I now, its problem with sintax and ask example entry in configuration file.

Please post the full configuration file, and the log (with the “–verbose” command-line flag).

Ok. File in attach. In comment used russian language, but this not problem for you.

Configuration.json (13.8 KB)

Your configuration file is OK and runs properly on my computer.

Make sure that “/home/pacs/Orthanc/libOrthancDicomWeb.so” and “/home/pacs/Orthanc/libOrthancWebViewer.so” do exist, and post the log file.

Perhaps you did not understand me. Plugins work for me, but if I add the plug-in configuration options, then an error occurs.
I need to see an example of how to write the options in a file. Instructions from the site I do not work, the syntax problem.
Perhaps somewhere extra bracket of or something else.

Here you are.

You’ll have to fix the path to the plugins.

Configuration.json (14.4 KB)

Ok. I fix the path to the plugins.

<i>"Plugins" : [
"./libOrthancDicomWeb.so", "./libOrthancWebViewer.so"
  ],</i>
<i>[...]
  "WebViewer" : {
    "CachePath" : "WebViewerCache",
    "CacheSize" : 10,
    "Threads" : 4
  }
}</i>

That is such variant of adding options to the plugin will work?

I don’t understand your question.

If the question is “Can I remove the ‘DicomWeb’ section in the configuration file?”, the answer is “yes”.

Adding to the plugin options and does not work.

Config with option to plugin in the attached file.

Configuration.json (13.9 KB)

Remove the “[…]”, this is a convention to indicate that lines are skipped.