Added open-shift configuration for api-route

This commit is contained in:
Erik Tiekstra
2021-08-02 09:20:41 +02:00
parent cbe41ab74c
commit fe89d57d3f
6 changed files with 21 additions and 4 deletions

View File

@@ -90,6 +90,14 @@
"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"
}
]
}
}
},

View 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: {},
},
};

View File

@@ -1,7 +1,6 @@
{
"/api": {
// "target": "http://dafa-api-test.tocp.arbetsformedlingen.se",
"target": "http://mina-sidor-fa-test-api.tocp.arbetsformedlingen.se",
"target": "https://mina-sidor-fa-test-api.tocp.arbetsformedlingen.se",
"secure": false,
"changeOrigin": true
}

View File

@@ -72,7 +72,6 @@ http {
# proxy_pass $JWT_URL;
# }
error_page 404 /404.html;
location = /40x.html {

View File

@@ -95,7 +95,7 @@ pipeline {
echo '### Building application... ###'
sh '''
npm run build:api
npm run build:open-shift
cp -r nginx/* ${NGINX_PATH}
'''

View File

@@ -14,6 +14,7 @@
"start:api": "ng serve dafa-web --configuration api",
"build": "ng build dafa-web",
"build:api": "ng build dafa-web --configuration api",
"build:open-shift": "ng build dafa-web --configuration open-shift",
"test": "ng test dafa-web",
"release": "bash ./tools/release.sh",
"release:dry": "bash ./tools/release.sh dry",