Skip to content

Commit

Permalink
Merge pull request #64 from Opetushallitus/fix/oaipmh-path
Browse files Browse the repository at this point in the history
Change oaipmh service basepath to meta/oaipmh
  • Loading branch information
hsalokor authored Jan 21, 2025
2 parents d655152 + a9e819a commit abd17a7
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
server.port=8001
server.servlet.context-path=/rest
server.servlet.context-path=/meta
server.servlet.register-default-servlet=true
spring.profiles.active=prod

Expand Down
11 changes: 8 additions & 3 deletions aoe-infra/bin/infra.ts
Original file line number Diff line number Diff line change
Expand Up @@ -397,14 +397,19 @@ if (environmentName === 'dev' || environmentName === 'qa' || environmentName ===
minimumCount: environmentConfig.services.data_services.min_count,
maximumCount: environmentConfig.services.data_services.max_count,
cpuArchitecture: CpuArchitecture.X86_64,
env_vars: environmentConfig.services.data_services.env_vars,
env_vars: {
...environmentConfig.services.data_services.env_vars,
...{
AOE_IDENTIFY_BASEURL: `https://${domain}/meta/oaipmh`
}
},
parameter_store_secrets: [],
secrets_manager_secrets: [],
utilityAccountId: utilityAccountId,
alb: Alb.alb,
listener: Alb.albListener,
listenerPathPatterns: ['/rest/oaipmh*'],
healthCheckPath: '/rest/health',
listenerPathPatterns: ['/meta/oaipmh*'],
healthCheckPath: '/meta/health',
healthCheckGracePeriod: 180,
healthCheckInterval: 5,
healthCheckTimeout: 2,
Expand Down
2 changes: 1 addition & 1 deletion aoe-infra/environments/dev.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"memory_limit": "1024",
"min_count": 1,
"max_count": 1,
"image_tag": "ga-306",
"image_tag": "ga-314",
"allow_ecs_exec": true,
"env_vars": {
"SPRING_PROFILES_ACTIVE": "prod",
Expand Down
2 changes: 1 addition & 1 deletion aoe-infra/environments/prod.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"memory_limit": "4096",
"min_count": 1,
"max_count": 1,
"image_tag": "ga-306",
"image_tag": "ga-314",
"allow_ecs_exec": true,
"env_vars": {
"SPRING_PROFILES_ACTIVE": "prod",
Expand Down
2 changes: 1 addition & 1 deletion aoe-infra/environments/qa.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"memory_limit": "1024",
"min_count": 1,
"max_count": 1,
"image_tag": "ga-306",
"image_tag": "ga-314",
"allow_ecs_exec": true,
"env_vars": {
"SPRING_PROFILES_ACTIVE": "prod",
Expand Down

0 comments on commit abd17a7

Please sign in to comment.