Commit f1459372 authored by Federico Sismondi's avatar Federico Sismondi

Fixed names of ENV VARS for lora platform

parent 50cff17f
......@@ -32,7 +32,7 @@ app = Flask(__name__, )
COLLECTION_DIR = os.getenv('COLLECTION_DIR', default='.')
URL_BASE = 'http://{}:1026'.format(os.getenv('ORION_HOST', default='localhost'))
LORA_PLATFORM_URL = os.getenv('LORA_PLATFORM_SERVER')
LORA_PLATFORM_URL = os.getenv('LORA_PLATFORM_URL')
LORA_PLATFORM_SECRET_FILE = os.getenv('LORA_PLATFORM_SECRET_FILE', 'secret_carouge_lora')
......
......@@ -29,7 +29,7 @@ print("Starting to collect..")
COLLECTION_DIR = os.getenv('COLLECTION_DIR', default='.')
URL_BASE = 'http://{}:1026'.format(os.getenv('ORION_HOST', default='localhost'))
LORA_PLATFORM_URL = os.getenv('LORA_PLATFORM_SERVER')
LORA_PLATFORM_URL = os.getenv('LORA_PLATFORM_URL')
LORA_PLATFORM_SECRET_FILE = os.getenv('LORA_PLATFORM_SECRET_FILE', 'secret_carouge_lora')
with open(LORA_PLATFORM_SECRET_FILE, 'r') as file:
......
......@@ -322,7 +322,7 @@ services:
- COLLECTION_DIR=/code/raw_data
- ORION_HOST=orion
- LORA_PLATFORM_SECRET_FILE=/run/secrets/lora_platform_auth_header
- LORA_PLATFORM_SERVER=https://lora-ns.sig-ge.ch:443
- LORA_PLATFORM_URL=https://lora-ns.sig-ge.ch:443
secrets:
- lora_platform_auth_header
expose:
......@@ -355,7 +355,7 @@ services:
- COLLECTION_DIR=/code/raw_data
- ORION_HOST=orion
- LORA_PLATFORM_SECRET_FILE=/run/secrets/lora_platform_auth_header
- LORA_PLATFORM_SERVER=https://eu.saas.orbiwise.com:443
- LORA_PLATFORM_URL=https://eu.saas.orbiwise.com:443
secrets:
- lora_platform_auth_header
expose:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment