Closed Zambonilli closed 1 year ago
FHIR Works on AWS has been moved to maintenance mode. While in maintenance, we will not add any new features to this solution. All security issues should be reported directly to AWS Security at [aws-security@amazon.com] (mailto:security@amazon.com). If you are new to this solution, we advise you to explore using [HealthLake] (https://aws.amazon.com/healthlake), which is our managed service for building FHIR based transactional and analytics applications. You can get started by contacting your AWS Account team. If you are an existing customer of FHIR Works on AWS, and have additional questions or need immediate help, please reach out to fwoa-migration-support@amazon.com or contact your AWS Account team.
Issue #, if available: https://github.com/awslabs/fhir-works-on-aws-deployment/issues/378
Description of changes: Added logic to the setServerUrl middleware to dynamically compute the TLD based on the request's hostname if fwoa is currently configured to in server.dynamicHostName. This allows for supporting private API gateways, custom DNS and cname TLDs and fixes public API links being used in search bundle response's link values.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.