From dec754016c9a7242eec99d4ff0e2e353ab8b5aac Mon Sep 17 00:00:00 2001 From: Tomer Salakoff Date: Mon, 9 Sep 2024 15:29:26 +0300 Subject: [PATCH] Adds env var for SecondFactorDevice field in ibc config.ini.tmpl --- README.md | 1 + docker-compose.yml | 1 + image-files/config/ibc/config.ini.tmpl | 2 +- latest/config/ibc/config.ini.tmpl | 2 +- stable/config/ibc/config.ini.tmpl | 2 +- template_README.md | 1 + tws-docker-compose.yml | 1 + 7 files changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 829c14b..619a131 100644 --- a/README.md +++ b/README.md @@ -63,6 +63,7 @@ services: environment: TWS_USERID: ${TWS_USERID} TWS_PASSWORD: ${TWS_PASSWORD} + TWOFA_DEVICE: ${TWOFA_DEVICE} TRADING_MODE: ${TRADING_MODE:-paper} TWS_SETTINGS_PATH: ${TWS_SETTINGS_PATH:-} TWS_ACCEPT_INCOMING: ${TWS_ACCEPT_INCOMING:-} diff --git a/docker-compose.yml b/docker-compose.yml index 96f2a8f..ca346db 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -10,6 +10,7 @@ services: environment: TWS_USERID: ${TWS_USERID} TWS_PASSWORD: ${TWS_PASSWORD} + TWOFA_DEVICE: ${TWOFA_DEVICE} TRADING_MODE: ${TRADING_MODE:-paper} TWS_USERID_PAPER: ${TWS_USERID_PAPER:-} TWS_PASSWORD_PAPER: ${TWS_PASSWORD_PAPER:-} diff --git a/image-files/config/ibc/config.ini.tmpl b/image-files/config/ibc/config.ini.tmpl index 6c5cd35..c0bfb19 100644 --- a/image-files/config/ibc/config.ini.tmpl +++ b/image-files/config/ibc/config.ini.tmpl @@ -112,7 +112,7 @@ FIXPassword= # in the list. If no value is set, you must manually select the # relevant list entry. -SecondFactorDevice= +SecondFactorDevice=${TWOFA_DEVICE} # If you use the IBKR Mobile app for second factor authentication, diff --git a/latest/config/ibc/config.ini.tmpl b/latest/config/ibc/config.ini.tmpl index 6c5cd35..c0bfb19 100644 --- a/latest/config/ibc/config.ini.tmpl +++ b/latest/config/ibc/config.ini.tmpl @@ -112,7 +112,7 @@ FIXPassword= # in the list. If no value is set, you must manually select the # relevant list entry. -SecondFactorDevice= +SecondFactorDevice=${TWOFA_DEVICE} # If you use the IBKR Mobile app for second factor authentication, diff --git a/stable/config/ibc/config.ini.tmpl b/stable/config/ibc/config.ini.tmpl index c4f1f4b..5606dfa 100644 --- a/stable/config/ibc/config.ini.tmpl +++ b/stable/config/ibc/config.ini.tmpl @@ -112,7 +112,7 @@ FIXPassword= # in the list. If no value is set, you must manually select the # relevant list entry. -SecondFactorDevice= +SecondFactorDevice=${TWOFA_DEVICE} # If you use the IBKR Mobile app for second factor authentication, diff --git a/template_README.md b/template_README.md index ed4ec4f..691f96d 100644 --- a/template_README.md +++ b/template_README.md @@ -63,6 +63,7 @@ services: environment: TWS_USERID: ${TWS_USERID} TWS_PASSWORD: ${TWS_PASSWORD} + TWOFA_DEVICE: ${TWOFA_DEVICE} TRADING_MODE: ${TRADING_MODE:-paper} TWS_SETTINGS_PATH: ${TWS_SETTINGS_PATH:-} TWS_ACCEPT_INCOMING: ${TWS_ACCEPT_INCOMING:-} diff --git a/tws-docker-compose.yml b/tws-docker-compose.yml index 7731b10..14729da 100644 --- a/tws-docker-compose.yml +++ b/tws-docker-compose.yml @@ -19,6 +19,7 @@ services: PASSWD: ${PASSWD:-} TWS_USERID: ${TWS_USERID} TWS_PASSWORD: ${TWS_PASSWORD} + TWOFA_DEVICE: ${TWOFA_DEVICE} TRADING_MODE: ${TRADING_MODE:-paper} TWS_USERID_PAPER: ${TWS_USERID_PAPER:-} TWS_PASSWORD_PAPER: ${TWS_PASSWORD_PAPER:-}