Nirvan Ramjuttun | 2ac64f2 | 2019-05-30 14:07:23 -0400 | [diff] [blame] | 1 | /** |
| 2 | ~ Copyright © 2019 Bell Canada. |
| 3 | ~ |
| 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | ~ you may not use this file except in compliance with the License. |
| 6 | ~ You may obtain a copy of the License at |
| 7 | ~ |
| 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | ~ |
| 10 | ~ Unless required by applicable law or agreed to in writing, software |
| 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | ~ See the License for the specific language governing permissions and |
| 14 | ~ limitations under the License. |
| 15 | */ |
| 16 | export const appConfig = Object.freeze({ |
| 17 | action: Object.freeze({ |
| 18 | deployBlueprint: Object.freeze({ |
| 19 | grpcEnabled: process.env.APP_ACTION_DEPLOY_BLUEPRINT_GRPC_ENABLED || true |
| 20 | }) |
| 21 | }) |
| 22 | }); |
| 23 | |
Shaaban Ebrahim | 6c6ec71 | 2019-10-09 18:12:44 +0200 | [diff] [blame] | 24 | // export const controllerApiConfig = Object.freeze({ |
| 25 | // http: Object.freeze({ |
| 26 | // url: process.env.API_BLUEPRINT_PROCESSOR_HTTP_BASE_URL || "http://localhost:8081/api/v1", |
| 27 | // authToken: process.env.API_BLUEPRINT_PROCESSOR_HTTP_AUTH_TOKEN || "Basic Y2NzZGthcHBzOmNjc2RrYXBwcw==" |
| 28 | // }) |
| 29 | // }); |
Nirvan Ramjuttun | 2ac64f2 | 2019-05-30 14:07:23 -0400 | [diff] [blame] | 30 | |
| 31 | export const processorApiConfig = Object.freeze({ |
| 32 | http: Object.freeze({ |
Arundathi Patil | d820552 | 2019-10-03 19:27:56 +0530 | [diff] [blame] | 33 | url: process.env.API_BLUEPRINT_PROCESSOR_HTTP_BASE_URL || "http://localhost:8081/api/v1", |
Nirvan Ramjuttun | 2ac64f2 | 2019-05-30 14:07:23 -0400 | [diff] [blame] | 34 | authToken: process.env.API_BLUEPRINT_PROCESSOR_HTTP_AUTH_TOKEN || "Basic Y2NzZGthcHBzOmNjc2RrYXBwcw==" |
| 35 | }), |
| 36 | grpc: Object.freeze({ |
| 37 | host: process.env.API_BLUEPRINT_PROCESSOR_GRPC_HOST || "localhost", |
| 38 | port: process.env.API_BLUEPRINT_PROCESSOR_GRPC_PORT || 9111, |
| 39 | authToken: process.env.API_BLUEPRINT_PROCESSOR_GRPC_AUTH_TOKEN || "Basic Y2NzZGthcHBzOmNjc2RrYXBwcw==", |
| 40 | bluePrintManagement: Object.freeze({ |
| 41 | //this path is relative to 'dist' folder |
| 42 | protoPath: __dirname + '../../../proto/BluePrintManagement.proto' |
| 43 | }) |
| 44 | }) |
| 45 | }); |
| 46 | |
| 47 | |