The admin is pre-configured for a local host domain of i2b2demo. The steps in this section will walk you through how to configure the Admin to a different domain or host.
Make sure you are editing the files in your web server directory and not the ones that reside in YOUR_I2B2_SRC_DIR. |
1. Go to the admin folder in your web server directory. |
Examples: |
Linux: /var/www/html |
Windows: C:\inetpub\wwwroot |
2. Open the i2b2_config_data.js file. |
3. Edit or add additional domains for your environment. |
4. It is very important you add the line that says "adminOnly: true" to the file. (See the code block below.) This causes the web client to start in admin mode. |
|
{ urlProxy: "index.php", urlFramework: "js-i2b2/", //------------------------------------------------------------------------------------------- // THESE ARE ALL THE DOMAINS A USER CAN LOGIN TO lstDomains: [ { domain: "i2b2demo", name: "i2b2demo", urlCellPM: "http://localhost:9090/i2b2/services/PMService/", allowAnalysis: true, adminOnly: true, debug: false } ] //------------------------------------------------------------------------------------------- } |
4. Save the changes and close the file. |