yuuvis® RAD Q&A

+1 vote
by (790 points)

Hello dear enaio developers,

from the enaio-agent configuration guide:
"enaio agent cannot be used when using HTTPS, and the 'NTLM’ authentication."

I assume, i can configure the second gateway (only avalable in the local network, for instance) with HTTP and NTLM.

I've done the following:

  • copied the gateway service into /apps/gateway2/gateway.jar
  • added the second gateway to the servicewatcher configuration file (port 80, path to jar: /apps/gateway2/gateway.jar)
  • created a configuration file for the second gateway - gateway2-prod.yml

However, the service doesn't start. Could you please tell me, what to do next?

Best wishes,
Umar

1 Answer

+2 votes
by (19.6k points)
selected by
 
Best answer

Hello Umar,

you don't need to copy the microservice jar-file. Instead you can take advantage of the incremental profile loading by doing the following:
- copy the gateway-prod.yml file and name it gateway-ssl.yml
- delete everything inside the gateway-ssl.yml file except the lines that configure the ssl certificate
- delete the lines that configure the ssl certificate from the gateway-prod.yml file
- in the servicewatcher-sw.yml file copy the entire gateway-section and paste it right below the original one.
- add the profile 'ssl' to the right of the 'prod' profile to the original gateway section and change the name from 'gateway' to 'gateway-ssl'
- at the new gateway section change the name to 'gateway-nossl' and change the port to 80 (or the one you desire).

in the end it should look like this:

- name: gateway-ssl
    type: microservice
    profiles: prod,ssl,cloud,red
    instances: 1
    memory: 512M
    port: 443
    path: ${appBase}/gateway/gateway-app.jar

- name: gateway-nossl
    type: microservice
    profiles: prod,cloud,red
    instances: 1
    memory: 512M
    port: 80
    path: ${appBase}/gateway/gateway-app.jar

the name of the service and of the profile can be chosen freely (just keep 'gateway-' as the start of the profile-filename)

Regards
Nicolai

by (790 points)
Hello Nicolai,

ah, this is great! Gateway2 is ready for action. :)

Thank you!
Umar

Related questions

0 votes
1 answer
asked Mar 15, 2019 by gbalatckii (1.2k points)
+2 votes
1 answer
asked Dec 17, 2018 by Peter Strasser (2.1k points)
0 votes
1 answer
...