Developers Getting Started With i2b2
Space shortcuts
Space Tools
Skip to end of metadata
Go to start of metadata


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

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.


Important

  • 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.


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



4. Save the changes and close the file.