Developers Getting Started With i2b2
Space shortcuts
Space Tools

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin


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.

Steps to update domain and host


Warning
titleWARNING

Make sure you are editing the files in your web server directory and not the ones that reside in YOUR_I2B2_SRC_DIR.


indent
Level1

1. Go to the admin folder in your web server directory.


indent
Level2

Examples:


indent
Level4

Linux:  /var/www/html


indent
Level4

Windows:  C:\inetpub\wwwroot



indent
Level1

2. Open the i2b2_config_data.js file.


indent
Level1

3. Edit or add additional domains for your environment.


indent
Level1

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.



Note
titleImportant
  • If you are installing the i2b2 demo environment do not edit the domain "i2b2demo" except to update the urlCellPM with your host and port for the location of the PM Cell.
  • If you are setting up your own i2b2 environment with test or production data then you can copy the domain section and edit it to reflect your environment.


Code Block
borderStylesolid
titlei2b2_config_data.js


{
	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
		}
	]
	//-------------------------------------------------------------------------------------------
}



indent
Level1

4. Save the changes and close the file.