# 4 questions regarding the new Plug-in?

**URL:** https://discourse.orthanc-server.org/t/4-questions-regarding-the-new-plug-in/3648
**Category:** General
**Created:** [June 22, 2023, 6:03am UTC](https://discourse.orthanc-server.org/t/4-questions-regarding-the-new-plug-in/3648 "2023-06-22T06:03:58Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![sdscotti](https://discourse.orthanc-server.org/user_avatar/discourse.orthanc-server.org/sdscotti/32/2563_2.png) [@sdscotti](https://discourse.orthanc-server.org/u/sdscotti)
#### Post date: [June 22, 2023, 6:03am UTC](https://discourse.orthanc-server.org/t/4-questions-regarding-the-new-plug-in/3648/1 "2023-06-22T06:03:58Z")

</div>

1. Where does ohif.js get mapped to in the OHIF plug-in, and if I bind to my host in Docker can I modify it real-time (might require a page refresh or 2, or turning off caching), but it seems that is where it maps to ?

2. What are the window.config = {  
extensions: [],  
modes: []  
}  
extensions and modes, and how do I play with those, probably consult OHIF documentation ? Can those be added without the release of a new Plug-in, or by compiling your own version of OHIF somehow and mapping.

[Config files](https://docs.ohif.org/configuration/configurationfiles/)

1. What are the minimum hardware requirement to run a basic setup and some that might be somewhat larger than that ? Even a small Droplet seems to work for the Basic setup.

Most of that is in the Orthanc Book:

[Orthanc Online Book](https://book.orthanc-server.com/plugins/ohif.html)

[Scalability](https://book.orthanc-server.com/faq/scalability.html?highlight=scalability)

1. regarding " previous location of the database then using `--upgrade` as written above, or by using the instructions for replication below."

I think I did that via the CLI in the postgres Docker container because I had an old version without the Labels support. How can I verify that it ‘worked’. It runs now, and I see this in a tools/find response:

```auto
|IsStable|Yes|
|---|---|
|Labels|[]|

```

so it must be working ?

Have a nice day.

---

<div class="post-metadata">

### Author: ![alainmazy](https://discourse.orthanc-server.org/user_avatar/discourse.orthanc-server.org/alainmazy/32/1576_2.png) [@alainmazy](https://discourse.orthanc-server.org/u/alainmazy)
#### Post date: [June 22, 2023, 7:40pm UTC](https://discourse.orthanc-server.org/t/4-questions-regarding-the-new-plug-in/3648/2 "2023-06-22T19:40:18Z")

</div>

Hi,

Only answering question 4 to avoid misinformation: There is no need to run orthanc with `--upgrade` to benefit from the labels.

The `--upgrade` option is only required when the DB schema is incompatible between two Orthanc versions and last time it happened was in 2015 😉 All other DB schema updates are automatic.

BR,

Alain

---

<div class="post-metadata">

### Author: ![sdscotti](https://discourse.orthanc-server.org/user_avatar/discourse.orthanc-server.org/sdscotti/32/2563_2.png) [@sdscotti](https://discourse.orthanc-server.org/u/sdscotti)
#### Post date: [June 22, 2023, 8:21pm UTC](https://discourse.orthanc-server.org/t/4-questions-regarding-the-new-plug-in/3648/3 "2023-06-22T20:21:33Z")

</div>

That issue occurred on a dev instance where I think I had postgres v.13 when I used the DB initially, and then switched to v.15. I had a couple of exams in the DB. I did have to do something because I saw some warning, and then I did that through the terminal in the Postgres instance via Portainer, which is nice really. It has GUI where can connect to the container terminal, but maybe there is way to just SSH into the container directly via remote ?

I think I do have the Housekeeper on that though.

---

<div class="post-metadata">

### Author: ![jodogne](https://discourse.orthanc-server.org/user_avatar/discourse.orthanc-server.org/jodogne/32/1511_2.png) [@jodogne](https://discourse.orthanc-server.org/u/jodogne)
#### Post date: [June 23, 2023, 5:43am UTC](https://discourse.orthanc-server.org/t/4-questions-regarding-the-new-plug-in/3648/4 "2023-06-23T05:43:53Z")

</div>

> [@sdscotti](#):
>
> 1. Where does ohif.js get mapped to in the OHIF plug-in, and if I bind to my host in Docker can I modify it real-time (might require a page refresh or 2, or turning off caching), but it seems that is where it maps to ?

There is no such thing as `ohif.js` in OHIF 3.6.0 (which is bundled in the OHIF plugin 1.0). The configuration file is called `app-config.js`. The documentation of the OHIF plugin [explains how to set configuration options](https://book.orthanc-server.com/plugins/ohif.html#user-configuration-of-ohif).

You have to restart Orthanc after a change to the `OHIF.UserConfiguration` option of Orthanc.

> [@sdscotti](#):
>
> 1. What are the window.config = {  
> extensions: ,  
> modes:   
> }  
> extensions and modes, and how do I play with those, probably consult OHIF documentation ?

Yes, check out the [OHIF documentation](https://v3-docs.ohif.org/configuration/configurationfiles/#configuration-options) (this is the [link in the documentation of the OHIF plugin](https://book.orthanc-server.com/plugins/ohif.html#user-configuration-of-ohif)).

On the Orthanc forum, we only talk about the OHIF plugin for Orthanc, not about OHIF itself. If you have questions about OHIF, ask the OHIF community.

> [@sdscotti](#):
>
> 1. What are the minimum hardware requirement to run a basic setup and some that might be somewhat larger than that ? Even a small Droplet seems to work for the Basic setup.

Check out the [Orthanc Book](https://book.orthanc-server.com/faq/scalability.html). As far as hardware required for OHIF is concerned, ask the OHIF community.
