question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Configure server to override "self" URIs with external path

See original GitHub issue

Is your feature request related to a problem? Please describe. We’re running the FHIR Server behind a proxy and that proxy modifies the request URLs.

Request come in to an endpoint like https://[host]/wh-fhir-dev/api/v4 but the server is returning URIs like https://[host]/fhir-server/api/v4/$export-status?job=9.

Is there a way to use the origin request URL in the server URLs returned by the server?

I think it affects at least:

  • search result self uri
  • Bundle entry fullUrl values
  • bulkimportexport polling URLs

Describe the solution you’d like https://[host]/wh-fhir-dev/api/v4 Either:

  • a setting the server will use as the “base” in all self uris; or
  • a way to tell the server which HTTP header has the original request URI (so it can use that to construct self uris)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
albertwang-ibmcommented, Nov 27, 2019

but I agree that adding a new config in fhir server side sounds like a simpler solution.

0reactions
prb112commented, Mar 3, 2020

Confirmed with my above test

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configure endpoints for the ASP.NET Core Kestrel web server
json file and can be overridden. If no ports are specified, Kestrel binds to http://localhost:5000 . Specify URLs using the: ASPNETCORE_URLS ...
Read more >
5 ways to set the URLs for an ASP.NET Core app
Using launchSettings.json - Set the URLs using the applicationUrl property. KestrelServerOptions.Listen() - Configure addresses for Kestrel ...
Read more >
Javascript URI/Origin Override - iframe - Stack Overflow
I have a very specific challenge where a self contained website and assets are stored in a location that is not a web...
Read more >
Pitfalls and Common Mistakes | NGINX
This page outlines some of the NGINX configuration issues that we see frequently and then explains how to resolve them.
Read more >
Configuration options for the GitLab Linux package
Optional. Before you change the external URL, determine if you have previously defined a custom Home page URL or After sign-out path. Both...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found