Skip to content
Snippets Groups Projects
Commit e598bf95 authored by FORESTIER Fabien's avatar FORESTIER Fabien
Browse files

Edit the environment file in order to use kong-dev and kong-rec host

parent e221db34
No related branches found
No related tags found
No related merge requests found
Pipeline #
...@@ -4,15 +4,15 @@ import { AppRoutes } from '../app/routes'; ...@@ -4,15 +4,15 @@ import { AppRoutes } from '../app/routes';
// The build system defaults to the dev environment which uses `environment.ts`, but if you do // The build system defaults to the dev environment which uses `environment.ts`, but if you do
// `ng build --env=prod` then `environment.prod.ts` will be used instead. // `ng build --env=prod` then `environment.prod.ts` will be used instead.
// The list of which env maps to which file can be found in `.angular-cli.json`. // The list of which env maps to which file can be found in `.angular-cli.json`.
const servicesProxyUrl = 'https://data-intothesky.alpha.grandlyon.com'; // const servicesProxyUrl = 'https://data-intothesky.alpha.grandlyon.com';
const kongBaseUrl = 'https://kong.alpha.grandlyon.com'; const kongBaseUrl = 'https://kong-dev.alpha.grandlyon.com';
export const environment = { export const environment = {
production: true, production: true,
oidcLoginEndpoint: kongBaseUrl + '/authentication/dev/login/oidc', oidcLoginEndpoint: kongBaseUrl + '/authentication/login/oidc',
glcLoginEndpoint: kongBaseUrl + '/authentication/dev/login/glc', glcLoginEndpoint: kongBaseUrl + '/authentication/login/glc',
tokenEndpoint: kongBaseUrl + '/authentication/dev/token', tokenEndpoint: kongBaseUrl + '/authentication/token',
logoutEndpoint: kongBaseUrl + '/authentication/dev/logout', logoutEndpoint: kongBaseUrl + '/authentication/logout',
// ElasticSearch // ElasticSearch
elasticsearchUrl: { elasticsearchUrl: {
...@@ -22,7 +22,7 @@ export const environment = { ...@@ -22,7 +22,7 @@ export const environment = {
enableEsFrontCache: false, enableEsFrontCache: false,
matomo: { matomo: {
url: 'https://matomo-intothesky.alpha.grandlyon.com', url: kongBaseUrl + '/analytics',
}, },
backendUrls: { backendUrls: {
...@@ -31,7 +31,7 @@ export const environment = { ...@@ -31,7 +31,7 @@ export const environment = {
}, },
emailService: { emailService: {
url: 'https://kong.alpha.grandlyon.com/email', url: kongBaseUrl + '/email',
}, },
// Path to the built app in a particular language // Path to the built app in a particular language
...@@ -41,7 +41,7 @@ export const environment = { ...@@ -41,7 +41,7 @@ export const environment = {
}, },
// Wordpress // Wordpress
wordpressUrl: servicesProxyUrl + '/wordpress/wp-json/wp/v2/', wordpressUrl: kongBaseUrl + '/cms/wp-json/wp/v2/',
wordpressStaticPages: {}, wordpressStaticPages: {},
wordpressContent: { wordpressContent: {
categoryIdUniqueContent: 5, categoryIdUniqueContent: 5,
......
...@@ -4,15 +4,15 @@ import { AppRoutes } from '../app/routes'; ...@@ -4,15 +4,15 @@ import { AppRoutes } from '../app/routes';
// The build system defaults to the dev environment which uses `environment.ts`, but if you do // The build system defaults to the dev environment which uses `environment.ts`, but if you do
// `ng build --env=prod` then `environment.prod.ts` will be used instead. // `ng build --env=prod` then `environment.prod.ts` will be used instead.
// The list of which env maps to which file can be found in `.angular-cli.json`. // The list of which env maps to which file can be found in `.angular-cli.json`.
const servicesProxyUrl = 'https://data-intothesky.alpha.grandlyon.com'; // const servicesProxyUrl = 'https://data-intothesky.alpha.grandlyon.com';
const kongBaseUrl = 'https://kong.alpha.grandlyon.com'; const kongBaseUrl = 'https://kong-rec.alpha.grandlyon.com';
export const environment = { export const environment = {
production: true, production: true,
oidcLoginEndpoint: kongBaseUrl + '/authentication/rec/login/oidc', oidcLoginEndpoint: kongBaseUrl + '/authentication/login/oidc',
glcLoginEndpoint: kongBaseUrl + '/authentication/rec/login/glc', glcLoginEndpoint: kongBaseUrl + '/authentication/login/glc',
tokenEndpoint: kongBaseUrl + '/authentication/rec/token', tokenEndpoint: kongBaseUrl + '/authentication/token',
logoutEndpoint: kongBaseUrl + '/authentication/rec/logout', logoutEndpoint: kongBaseUrl + '/authentication/logout',
// ElasticSearch // ElasticSearch
elasticsearchUrl: { elasticsearchUrl: {
...@@ -22,7 +22,7 @@ export const environment = { ...@@ -22,7 +22,7 @@ export const environment = {
enableEsFrontCache: false, enableEsFrontCache: false,
matomo: { matomo: {
url: 'https://matomo-intothesky.alpha.grandlyon.com', url: kongBaseUrl + '/analytics',
}, },
backendUrls: { backendUrls: {
...@@ -31,7 +31,7 @@ export const environment = { ...@@ -31,7 +31,7 @@ export const environment = {
}, },
emailService: { emailService: {
url: 'https://kong.alpha.grandlyon.com/email', url: kongBaseUrl + '/email',
}, },
// Path to the built app in a particular language // Path to the built app in a particular language
...@@ -41,7 +41,7 @@ export const environment = { ...@@ -41,7 +41,7 @@ export const environment = {
}, },
// Wordpress // Wordpress
wordpressUrl: servicesProxyUrl + '/wordpress/wp-json/wp/v2/', wordpressUrl: kongBaseUrl + '/cms/wp-json/wp/v2/',
wordpressStaticPages: {}, wordpressStaticPages: {},
wordpressContent: { wordpressContent: {
categoryIdUniqueContent: 5, categoryIdUniqueContent: 5,
......
...@@ -5,7 +5,7 @@ import { AppRoutes } from '../app/routes'; ...@@ -5,7 +5,7 @@ import { AppRoutes } from '../app/routes';
// `ng build --env=prod` then `environment.prod.ts` will be used instead. // `ng build --env=prod` then `environment.prod.ts` will be used instead.
// The list of which env maps to which file can be found in `.angular-cli.json`. // The list of which env maps to which file can be found in `.angular-cli.json`.
const servicesProxyUrl = 'https://data-intothesky.alpha.grandlyon.com'; const servicesProxyUrl = 'https://data-intothesky.alpha.grandlyon.com';
const kongBaseUrl = 'https://kong.alpha.grandlyon.com'; const kongBaseUrl = 'https://kong-dev.alpha.grandlyon.com';
export const environment = { export const environment = {
production: false, production: false,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment