February 12, 2019 at 5:43 pm #24776
I am trying to setup a instance of Identity Gateway. I am still new to Linux system management so I must be missing some piece of knowledge. I am following the Getting started Guide. I have installed Jetty and place the war file in webapps directory. The next step says to place a config file in $HOME/.openig/config/admin.json. I don’t understand where the admin.json file is supposed to be placed. Can someone please point me the right direction. I tried putting it in /home/openig/config.
When I run java -jar start.jar -Dig.run.mode=development I get into development mode, but it does not stay in development for any additional runs of start.jar
Any information is appreciated, and I realize this is most likely a very basic question.February 13, 2019 at 5:51 am #24783srinath.mParticipant
The configuration files belong in $HOME/.openig/config. You must create the $HOME/.openig/config folder, and then copy the configuration files.
$ mkdir -p $HOME/.openig/config
$ vi $HOME/.openig/config/admin.json
If you plan to to create routes through OpenIG Studio(available on IG 5.0 onwards), make sure that this config.json contains a main router named _router.
You can find more info here
Hope it helps.
SrinathFebruary 13, 2019 at 1:58 pm #24785DustyParticipant
A small thing to add, it must be the home folder of the user which is executing Jetty.
February 13, 2019 at 4:42 pm #24791
- This reply was modified 3 days, 19 hours ago by Dusty.
That is very helpful.
You said copy the config files, Do you just mean the content of the files from the getting started guide? The only file I can find on backstage is the war file.
ReeceFebruary 13, 2019 at 5:51 pm #24794
I figured it out. For anyone that may stumble across this in the future. I created a user called jetty to run jetty.
So the path to jetty user home directory was /home/jetty. From here I needed to create the .openig directory (Note the . before openig is important.) Then I had to create the config directory. So my final directory for the admin.json file was /home/jetty/.openig/config/February 14, 2019 at 5:13 am #24798srinath.mParticipant
Config files means the routes(01-static-routes.json,zz-default.json etc) which we place in the config location(ex:$HOME/.openig/config)
I see more info about routes here.
https://backstage.forgerock.com/docs/ig/5/gateway-guide/#chap-routingFebruary 14, 2019 at 5:54 pm #24809
Ok, I got past the first problem, but now I am running into another. I have the config.json saved in the config folder, and zz-default.json in the routes folder. The instructions say go to “http://openig.example.com:8080/home” and I should be redirected to to the sample application. When I go to that address I just get “this page isn’t working message” and the url is still the same. I can go to http://openig.example.com:8080/openig/studio/ so IG is working and I can go to http://app.example.com:8081/login so the app is also working. Also I can telnet from my my server to myipaddress:8081 which is the same machine, but different port. I don’t really understand what is happening
Any help is appreciated
Reece PriceFebruary 14, 2019 at 6:14 pm #24811
Figured it out. I had edited the host file on my local machine, but not my remote server. The changes to the host file needed to be made on both.
You must be logged in to reply to this topic.