forked from cerberustesting/cerberus-core-angular
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenvironment.ts
More file actions
39 lines (33 loc) · 1.22 KB
/
environment.ts
File metadata and controls
39 lines (33 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import npm_package from '../../package.json';
import { HttpHeaders } from '@angular/common/http';
// This file can be replaced during build by using the `fileReplacements` array.
// `ng build ---prod` replaces `environment.ts` with `environment.prod.ts`.
// The list of file replacements can be found in `angular.json`.
// KEYCLOAK INFORMATION
const keycloakConfig: any = {
url: 'https://auth.cerberus-testing.org/auth',
realm: 'R-qa',
clientId: 'Cerberus-angular'
};
// CERBERUS API ENDPOINT
const API_endpoint = 'https://qa.cerberus-testing.com';
// HTTP HEADERS FOR API QUERY
const httpOptions = {
headers: new HttpHeaders({
'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'
})
};
export const environment = {
production: false,
cerberus_api_url: API_endpoint,
keycloak: keycloakConfig,
version: npm_package.version,
httpOptions : httpOptions
};
/*
* In development mode, to ignore zone related error stack frames such as
* `zone.run`, `zoneDelegate.invokeTask` for easier debugging, you can
* import the following file, but please comment it out in production mode
* because it will have performance impact when throw error
*/
// import 'zone.js/dist/zone-error'; // Included with Angular CLI.