Bug #4535

[API] Configuration option to set advertised hostname

Added by Peter Amstutz almost 5 years ago. Updated almost 5 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
-
Category:
-
Target version:
Start date:
11/17/2014
Due date:
% Done:

100%

Estimated time:
(Total: 0.00 h)
Story points:
-

Description

In development mode, the default root_url of rails is 'localhost'. This gets advertised in the discovery document. Unfortunately, this is a problem when running jobs in Docker, because 'localhost' means the docker container's namespace and not that of the host. This is a problem any time that Rail's default logic for generating the hostname in root_url does not match up with the hostname that actually should be advertised.

API server needs a configuration option to explicitly set the hostname that is advertised by rails.


Subtasks

Task #4537: Review 4535-configure-api-host-urlResolvedWard Vandewege


Related issues

Related to Arvados - Feature #3101: [Tests] Websockets should work out of the box in test/development modes, even when using an ssh tunnel and a self-signed certificate.New

Associated revisions

Revision 9a46fb00
Added by Peter Amstutz almost 5 years ago

Merge branch '4535-configure-api-host-url' closes #4535

History

#1 Updated by Peter Amstutz almost 5 years ago

  • Description updated (diff)

#2 Updated by Tom Clegg almost 5 years ago

  • Target version changed from 2014-11-19 sprint to Arvados Future Sprints

#3 Updated by Tom Clegg almost 5 years ago

  • Target version changed from Arvados Future Sprints to 2014-11-19 sprint

#4 Updated by Ward Vandewege almost 5 years ago

LGTM

#5 Updated by Anonymous almost 5 years ago

  • Status changed from New to Resolved

Applied in changeset arvados|commit:9a46fb0033514db6dd5e8ab4ccf793f78458a734.

Also available in: Atom PDF