Skip to content

Commit

Permalink
updated Gateway to July 2022
Browse files Browse the repository at this point in the history
  • Loading branch information
Voyz committed Apr 1, 2023
1 parent eb66b83 commit 49d2bf1
Show file tree
Hide file tree
Showing 13 changed files with 401 additions and 40 deletions.
4 changes: 2 additions & 2 deletions copy_cache/clientportal.gw/bin/run.bat
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@echo off
rem user needs to change

rem example setting a JAVA_HOME and adding to PATH
set JAVA_HOME=c:\jdk
set PATH=%JAVA_HOME%\bin;%PATH%

Expand All @@ -18,7 +18,7 @@ set RUNTIME_PATH="%config_path%;dist\ibgroup.web.core.iblink.router.clientportal
echo "running %verticle% "
echo "runtime path : %RUNTIME_PATH%"

java -Djava.net.preferIPv4Stack=true -Dvertx.disableDnsResolver=true -Dvertx.logger-delegate-factory-class-name=io.vertx.core.logging.SLF4JLogDelegateFactory -Dnologback.statusListenerClass=ch.qos.logback.core.status.OnConsoleStatusListener -Dnolog4j.debug=true -Dnolog4j2.debug=true -classpath %RUNTIME_PATH% ibgroup.web.core.clientportal.gw.GatewayStart
java -server -Dvertx.disableDnsResolver=true -Djava.net.preferIPv4Stack=true -Dvertx.logger-delegate-factory-class-name=io.vertx.core.logging.SLF4JLogDelegateFactory -Dnologback.statusListenerClass=ch.qos.logback.core.status.OnConsoleStatusListener -Dnolog4j.debug=true -Dnolog4j2.debug=true -classpath %RUNTIME_PATH% ibgroup.web.core.clientportal.gw.GatewayStart
rem optional arguments
rem -conf conf.beta.yaml --nossl

Expand Down
16 changes: 8 additions & 8 deletions copy_cache/clientportal.gw/bin/run.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/bash

# user needs to change
export PATH=/usr/local/jdk1.8_x64/bin:$PATH
export JAVA_HOME=/usr/local/jdk1.8_x64/bin
# example setting a JAVA_HOME and adding to PATH
#export JAVA_HOME=/usr/local/jdk1.8_x64/
#export PATH=$JAVA_HOME/bin:$PATH

if [ $# -lt 1 ]; then
>&2 echo "usage: $0 /path/to/conf.yaml"
Expand All @@ -17,16 +17,16 @@ export RUNTIME_PATH="$config_path:dist/ibgroup.web.core.iblink.router.clientport

echo "running $verticle "
echo " runtime path : $RUNTIME_PATH"
echo " verticle : $verticle"
echo " config file : $config_file"

java -server \
java \
-server \
-Dvertx.disableDnsResolver=true \
-Djava.net.preferIPv4Stack=true \
-Dvertx.logger-delegate-factory-class-name=io.vertx.core.logging.SLF4JLogDelegateFactory \
-Dnologback.statusListenerClass=ch.qos.logback.core.status.OnConsoleStatusListener \
-Dnolog4j.debug=true \
-Dnolog4j2.debug=true \
-cp "${RUNTIME_PATH}" \
ibgroup.web.core.clientportal.gw.GatewayStart
# optional arguments
# -conf conf.beta.yaml --nossl
ibgroup.web.core.clientportal.gw.GatewayStart \
--conf ../$config_file \
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
398 changes: 370 additions & 28 deletions copy_cache/clientportal.gw/doc/RealtimeSubscription.md

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions copy_cache/clientportal.gw/root/conf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ proxyRemoteSsl: true
proxyRemoteHost: "https://api.ibkr.com"
listenPort: 5000
listenSsl: true
ccp: false
svcEnvironment: "v1"
sslCert: "vertx.jks"
sslPwd: "mywebapi"
Expand Down
Binary file modified copy_cache/clientportal.gw/root/demo.zip
Binary file not shown.
22 changes: 20 additions & 2 deletions copy_cache/clientportal.gw/root/webapps/demo/index.html
Original file line number Diff line number Diff line change
@@ -1,2 +1,20 @@
<!DOCTYPE html><html><head><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0"><meta name="google" content="notranslate"><meta name="format-detection" content="telephone=no"><title>Client Portal gateway demo Module</title></head><body><div id="demo"></div><script>window.GATEWAY_BASE_URL = "https://localhost:5000/v1/portal";
document.write('<script type="text/javascript" src="demo/gateway.demo.js?9343fc8b454b4"></'+'script>');</script></body></html>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<meta name="google" content="notranslate">
<meta name="format-detection" content="telephone=no">
<title>Client Portal gateway demo Module</title>
</head>
<body>
<div id="demo"></div>
<script>
window.GATEWAY_BASE_URL = "https://localhost:5000/v1/api";
document
.write('<script type="text/javascript" src="demo/gateway.demo.js?9343fc8b454b4"></'+'script>');
</script>
</body>
</html>

0 comments on commit 49d2bf1

Please sign in to comment.