Added open-shift configuration for api-route
This commit is contained in:
@@ -90,6 +90,14 @@
|
|||||||
"with": "apps/dafa-web/src/environments/environment.api.ts"
|
"with": "apps/dafa-web/src/environments/environment.api.ts"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
"open-shift": {
|
||||||
|
"fileReplacements": [
|
||||||
|
{
|
||||||
|
"replace": "apps/dafa-web/src/environments/environment.ts",
|
||||||
|
"with": "apps/dafa-web/src/environments/environment.open-shift.ts"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
10
apps/dafa-web/src/environments/environment.open-shift.ts
Normal file
10
apps/dafa-web/src/environments/environment.open-shift.ts
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
export const environment = {
|
||||||
|
environment: 'api',
|
||||||
|
clientId: '5d08c2e4-763e-42f6-b858-24e4773bb83d',
|
||||||
|
loginUrl: 'https://ciam-test.arbetsformedlingen.se:8443/uas/oauth2/authorization?response_type=code&scope=openid',
|
||||||
|
production: false,
|
||||||
|
api: {
|
||||||
|
url: 'https://mina-sidor-fa-test-api.tocp.arbetsformedlingen.se/api',
|
||||||
|
headers: {},
|
||||||
|
},
|
||||||
|
};
|
||||||
@@ -1,7 +1,6 @@
|
|||||||
{
|
{
|
||||||
"/api": {
|
"/api": {
|
||||||
// "target": "http://dafa-api-test.tocp.arbetsformedlingen.se",
|
"target": "https://mina-sidor-fa-test-api.tocp.arbetsformedlingen.se",
|
||||||
"target": "http://mina-sidor-fa-test-api.tocp.arbetsformedlingen.se",
|
|
||||||
"secure": false,
|
"secure": false,
|
||||||
"changeOrigin": true
|
"changeOrigin": true
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -72,7 +72,6 @@ http {
|
|||||||
# proxy_pass $JWT_URL;
|
# proxy_pass $JWT_URL;
|
||||||
# }
|
# }
|
||||||
|
|
||||||
|
|
||||||
error_page 404 /404.html;
|
error_page 404 /404.html;
|
||||||
location = /40x.html {
|
location = /40x.html {
|
||||||
|
|
||||||
|
|||||||
2
openshift/dev/Jenkinsfile
vendored
2
openshift/dev/Jenkinsfile
vendored
@@ -95,7 +95,7 @@ pipeline {
|
|||||||
echo '### Building application... ###'
|
echo '### Building application... ###'
|
||||||
|
|
||||||
sh '''
|
sh '''
|
||||||
npm run build:api
|
npm run build:open-shift
|
||||||
cp -r nginx/* ${NGINX_PATH}
|
cp -r nginx/* ${NGINX_PATH}
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|||||||
@@ -14,6 +14,7 @@
|
|||||||
"start:api": "ng serve dafa-web --configuration api",
|
"start:api": "ng serve dafa-web --configuration api",
|
||||||
"build": "ng build dafa-web",
|
"build": "ng build dafa-web",
|
||||||
"build:api": "ng build dafa-web --configuration api",
|
"build:api": "ng build dafa-web --configuration api",
|
||||||
|
"build:open-shift": "ng build dafa-web --configuration open-shift",
|
||||||
"test": "ng test dafa-web",
|
"test": "ng test dafa-web",
|
||||||
"release": "bash ./tools/release.sh",
|
"release": "bash ./tools/release.sh",
|
||||||
"release:dry": "bash ./tools/release.sh dry",
|
"release:dry": "bash ./tools/release.sh dry",
|
||||||
|
|||||||
Reference in New Issue
Block a user