elixir-cloud-aai / trs-filer

Lightweight, flexible Flask/Gunicorn-based GA4GH TRS implementation
Apache License 2.0
8 stars 6 forks source link

fix: set external host URI for self refs #18

Closed sarthakgupta072 closed 4 years ago

sarthakgupta072 commented 4 years ago

The self_uri property in the Tool and ToolVersion data model should serve as a self reference to the resouce being requested. However, as it currently used the internal host, which is always set to 0.0.0.0/locahlost, this will only give the expected result when the service is deployed locally. When exposed over the internet, an external IP or domain has to be set. This PR adds a config variable where the domain of the service can be configured. By default it is set to some dummy value 1.2.3.4, but depending on the deployment, this can be modified to reflect the external host.

Fixes #17