diff --git a/.azure/prod.parameters.json b/.azure/prod.parameters.json index 9c43209d..d4acb872 100644 --- a/.azure/prod.parameters.json +++ b/.azure/prod.parameters.json @@ -10,7 +10,7 @@ "APPLICATIONINSIGHTS_CONNECTION_STRING", "KURSPLAN_API_KEY", "KURSPLAN_API_URI", - "KURS_INFO_API_KEY", + "KURSINFO_API_KEY", "KURS_PM_DATA_API_KEY", "REDIS_URI", "SESSION_KEY", @@ -24,7 +24,7 @@ "CONSOLE_ENABLED": "false", "IMAGE_STORAGE_URI": "https://kursinfostorageprod.blob.core.windows.net/kursinfo-image-container/", "KOPPS_URI": "https://api.kth.se/api/kopps/v2/?defaultTimeout=60000", - "KURS_INFO_API_URI": "https://api.kth.se/api/kursinfo?defaultTimeout=10000", + "KURSINFO_API_URI": "https://api.kth.se/api/kursinfo?defaultTimeout=10000", "KURS_PM_DATA_API_URI": "https://api.kth.se/api/kurs-pm-data?defaultTimeout=10000", "LOGGING_ACCESS_LOG": "true", "LOGGING_LEVEL": "INFO", diff --git a/.azure/ref.parameters.json b/.azure/ref.parameters.json index bfdcb45d..cad6d6c4 100644 --- a/.azure/ref.parameters.json +++ b/.azure/ref.parameters.json @@ -10,7 +10,7 @@ "APPLICATIONINSIGHTS_CONNECTION_STRING", "KURSPLAN_API_KEY", "KURSPLAN_API_URI", - "KURS_INFO_API_KEY", + "KURSINFO_API_KEY", "KURS_PM_DATA_API_KEY", "REDIS_URI", "SESSION_KEY", @@ -24,7 +24,7 @@ "CONSOLE_LOG": "true", "IMAGE_STORAGE_URI": "https://kursinfostoragestage.blob.core.windows.net/kursinfo-image-container/", "KOPPS_URI": "https://api-r.referens.sys.kth.se/api/kopps/v2/?defaultTimeout=60000", - "KURS_INFO_API_URI": "https://app-r.referens.sys.kth.se/api/kursinfo?defaultTimeout=10000", + "KURSINFO_API_URI": "https://app-r.referens.sys.kth.se/api/kursinfo?defaultTimeout=10000", "KURS_PM_DATA_API_URI": "https://api-r.referens.sys.kth.se/api/kurs-pm-data?defaultTimeout=10000", "LOGGING_ACCESS_LOG": "true", "LOGGING_LEVEL": "TRACE", diff --git a/.env.in b/.env.in index fd54ca96..091b630b 100644 --- a/.env.in +++ b/.env.in @@ -1,5 +1,5 @@ KURS_PM_DATA_API_KEY=[Available in Azure KeyVault] -KURS_INFO_API_KEY=[Available in Azure KeyVault] +KURSINFO_API_KEY=[Available in Azure KeyVault] KURSPLAN_API_KEY=[Available in Azure KeyVault] REDIS_URI=[Available in Azure KeyVault] \ No newline at end of file diff --git a/config/serverSettings.js b/config/serverSettings.js index 84bf3cca..0d504ea2 100644 --- a/config/serverSettings.js +++ b/config/serverSettings.js @@ -41,14 +41,14 @@ module.exports = { // API keys apiKey: { kursPmDataApi: getEnv('KURS_PM_DATA_API_KEY', devDefaults('1234')), - kursInfoApi: getEnv('KURS_INFO_API_KEY', devDefaults('1234')), + kursInfoApi: getEnv('KURSINFO_API_KEY', devDefaults('1234')), kursplanApi: getEnv('KURSPLAN_API_KEY', devDefaults('5678')), }, // Service API's nodeApi: { kursPmDataApi: unpackNodeApiConfig('KURS_PM_DATA_API_URI', devKursPmDataApi), - kursInfoApi: unpackNodeApiConfig('KURS_INFO_API_URI', devKursInfoApi), + kursInfoApi: unpackNodeApiConfig('KURSINFO_API_URI', devKursInfoApi), kursplanApi: unpackNodeApiConfig('KURSPLAN_API_URI', devKursplanApi), }, diff --git a/docker-compose-integration-tests-old.yml b/docker-compose-integration-tests-old.yml index 9e49b6fd..209da8cb 100644 --- a/docker-compose-integration-tests-old.yml +++ b/docker-compose-integration-tests-old.yml @@ -22,8 +22,8 @@ services: - LOGGING_ACCESS_LOG=true - KURS_PM_DATA_API_URI=http://mock-api:3000/kurs-pm - KURS_PM_DATA_API_KEY=secretpassword - - KURS_INFO_API_URI=http://mock-api:3000/kursinfo - - KURS_INFO_API_KEY=secretpassword + - KURSINFO_API_URI=http://mock-api:3000/kursinfo + - KURSINFO_API_KEY=secretpassword - KURSPLAN_API_URI=http://mock-api:3000/kursplan - KURSPLAN_API_KEY=secretpassword - REDIS_URI=redis://redis:6379 diff --git a/docker-compose-performance-tests.yml b/docker-compose-performance-tests.yml index d252a1e3..c31d03c8 100644 --- a/docker-compose-performance-tests.yml +++ b/docker-compose-performance-tests.yml @@ -25,8 +25,8 @@ services: LOGGING_ACCESS_LOG: 'false' KURS_PM_DATA_API_URI: 'http://mock-api:3000/kurs-pm' KURS_PM_DATA_API_KEY: 'secretpassword' - KURS_INFO_API_URI: 'http://mock-api:3000/kursinfo' - KURS_INFO_API_KEY: 'secretpassword' + KURSINFO_API_URI: 'http://mock-api:3000/kursinfo' + KURSINFO_API_KEY: 'secretpassword' KURSPLAN_API_URI: 'http://mock-api:3000/kursplan' KURSPLAN_API_KEY: 'secretpassword' REDIS_URI: 'redis://redis:6379'