-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Engine Traefik Docker labels for REST API reverse proxy routing (…
…#2019) ## Description: Create engine Traefik Docker labels for the REST API port so we can interact with the API via Traefik. The Host header is set to "engine". Tested with Docker locally: ``` $ curl -i http://localhost:9730/api/engine/info -H "Host: engine" HTTP/1.1 200 OK ... {"engine_version":"70d65c"} ``` ## Is this change user facing? NO ## References (if applicable): #1970
- Loading branch information
1 parent
ded589a
commit 6541884
Showing
6 changed files
with
69 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletions
5
container-engine-lib/lib/backend_interface/objects/engine/consts.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
package engine | ||
|
||
const ( | ||
RESTAPIPortAddr uint16 = 9779 | ||
RESTAPIHostIP string = "0.0.0.0" | ||
RESTAPIPortAddr uint16 = 9779 | ||
RESTAPIHostIP string = "0.0.0.0" | ||
RESTAPIPortHostHeader string = "engine" | ||
) |