diff --git a/modules/distribution/product/src/main/resources/conf/deployment-templates/api-key-manager-node.toml b/modules/distribution/product/src/main/resources/conf/deployment-templates/api-key-manager-node.toml new file mode 100644 index 0000000000..98420ed1d2 --- /dev/null +++ b/modules/distribution/product/src/main/resources/conf/deployment-templates/api-key-manager-node.toml @@ -0,0 +1,69 @@ +[server] +#hostname = "km.wso2.com" +server_role = "control-plane" + +[user_store] +type = "database_unique_id" + +[super_admin] +username = "admin" +password = "admin" +create_admin_account = true + +[database.apim_db] +type = "mysql" +hostname = "apim.mysql" +name = "apimgt_db" +port = "3306" +username = "apimuser" +password = "apimuser" + +[database.shared_db] +type = "mysql" +hostname = "shared_db.mysql" +name = "shared_db" +port = "3306" +username = "shareduser" +password = "shareduser" + +[keystore.tls] +file_name = "wso2carbon.jks" +type = "JKS" +password = "wso2carbon" +alias = "wso2carbon" +key_password = "wso2carbon" + +[truststore] +file_name = "client-truststore.jks" +type = "JKS" +password = "wso2carbon" + + +[[event_handler]] +name="userPostSelfRegistration" +subscriptions=["POST_ADD_USER"] + +[[event_listener]] +id = "token_revocation" +type = "org.wso2.carbon.identity.core.handler.AbstractIdentityHandler" +name = "org.wso2.is.notification.ApimOauthEventInterceptor" +order = 1 +[event_listener.properties] +notification_endpoint = "https://tm.wso2.com:443/internal/data/v1/notify" +username = "${admin.username}" +password = "${admin.password}" +'header.X-WSO2-KEY-MANAGER' = "default" + +# Traffic Manager configurations +[apim.throttling] +username= "$ref{super_admin.username}" +password= "$ref{super_admin.password}" +throttle_decision_endpoints = ["tcp://tm1.local:5672","tcp://tm2.local:5672"] + +[[apim.throttling.url_group]] +traffic_manager_urls=["tcp://tm1.local:9611"] +traffic_manager_auth_urls=["ssl://tm1.local:9711"] + +[[apim.throttling.url_group]] +traffic_manager_urls=["tcp://tm2.local:9611"] +traffic_manager_auth_urls=["ssl://tm2.local:9711"] diff --git a/modules/distribution/product/src/main/startup-scripts/profileSetup.bat b/modules/distribution/product/src/main/startup-scripts/profileSetup.bat index b491223183..5cb49b232e 100755 --- a/modules/distribution/product/src/main/startup-scripts/profileSetup.bat +++ b/modules/distribution/product/src/main/startup-scripts/profileSetup.bat @@ -55,7 +55,7 @@ if "%3"=="skipConfigOptimization" set passedSkipConfigOptimizationOption=true rem ----- Process the input commands (two args only)------------------------------------------- if ""%1""==""-Dprofile"" ( if ""%2""==""control-plane"" goto controlPlane - if ""%2""==""api-key-manager-deprecated"" goto keyManager + if ""%2""==""api-key-manager-node"" goto keyManager if ""%2""==""traffic-manager"" goto trafficManager if ""%2""==""gateway-worker"" goto gatewayWorker ) diff --git a/modules/distribution/product/src/main/startup-scripts/profileSetup.sh b/modules/distribution/product/src/main/startup-scripts/profileSetup.sh index 8281e7bb1e..f25ece6ef0 100755 --- a/modules/distribution/product/src/main/startup-scripts/profileSetup.sh +++ b/modules/distribution/product/src/main/startup-scripts/profileSetup.sh @@ -211,7 +211,7 @@ done #main case $1 in - -Dprofile=api-key-manager-deprecated) + -Dprofile=api-key-manager-node) timeStamp echo "[${timestamp}] INFO - Starting to optimize API Manager for the Key Manager profile" removeAxis2BlockingClientXMLFile @@ -221,7 +221,7 @@ case $1 in removeWebSocketInboundEndpoint removeSecureWebSocketInboundEndpoint removeSynapseConfigs - replaceDeploymentConfiguration api-key-manager-deprecated $passedSkipConfigOptimizationOption + replaceDeploymentConfiguration api-key-manager-node $passedSkipConfigOptimizationOption # removing webbapps which are not required for this profile for i in $(find $pathToWebapps -maxdepth 1 -mindepth 1 -not \( -name \ 'authenticationendpoint' -o -name 'accountrecoveryendpoint' -o -name 'oauth2.war' \