WSO2 IoT Server is configured via localhost as the product has SSO enabled by default. When in a production environment or if you wish to make WSO2 IoT Server IP based instead of localhost, you need to configure it accordingly. Let's take a look at the steps you need to follow to configure WSO2 IoT Server with the IP:
Open the
<IOT_HOME>/conf/carbon.xml
file and configure the<HostName>
and<MgtHostName>
attributes with the {IoT_SERVER_HOSTNAME}
.<!--<HostName>{IoT_SERVER_HOSTNAME}</HostName>--> <!--<MgtHostName>{IoT_SERVER_HOSTNAME}</MgtHostName>-->
- Open the
<IOT_HOME>/conf/identity/sso-idp-config.xml
file, and find and replacelocalhost
with the<IoT_SERVER_IP>
. Open the
<IOT_HOME>/conf/app-manager.xml
file, and configure the<IdentityProviderUrl>
attribute that is under<SSOConfiguration>
by replacinglocalhost
with the IoT Server IP.<!-- URL of the IDP use for SSO --> <IdentityProviderUrl>https://<IoT_SERVER_IP>:${mgt.transport.https.port}/samlsso</IdentityProviderUrl>
- Open the
<IOT_HOME>
/repository/deployment/server/jaggeryapps/devicemgt/app/conf/app-conf.json
file, and configure the following attributes:identityProviderUrl
: Replace%iot.keymanager.host%:%iot.keymanager.https.port%
with the IoT Server IP and host, which is 9443."identityProviderUrl" : "https://<IoT_SERVER_IP>:9443/samlsso",
acs
: Replace%iot.keymanager.host%:%iot.keymanager.https.port%
with the IoT Server IP and host, which is 9443."acs": "https://<IoT_SERVER_IP>:9443/devicemgt/uuf/sso/acs",
Open the
<IOT_HOME>/repository/deployment/server/jaggeryapps/api-store/site/conf/site.json
file, and configure theidentityProviderUrl
attribute by replacing localhost with the IoT Server IP."identityProviderURL" : "https://<IoT_SERVER_IP>:9443/samlsso",
Open the
<IOT_HOME>/wso2/analytics/repository/deployment/server/jaggeryapps/portal/configs/designer.json
file, and configure theidentityProviderUrl
andacs
attributes by replacing localhost with the IoT Server IP and the respective profiles port."identityProviderURL": "https://<IoT_SERVER_IP>:9443/samlsso", "acs": "https://<IoT_SERVER_IP>:9445/portal/acs",
The default port of the WSO2 IoT Server profiles are as follows:
WSO2 IoT Server core profile 9443 WSO2 IoT Server analytics profile 9445 WSO2 IoT Server broker profile 9446 Therefore, the analytics portal needs to be assigned the 9445 port.
Once you are done with the above steps, restart or start the message broker, IoT Server core, and the analytics profiles in the given order. For more information, see Starting the Server.