Skip to content

Helper {{baseUrl}} is not returning the container port #1488

@akashuwtw

Description

@akashuwtw

I am running mockoon inside a docker test container using a dynamic port (eg. 67503). I have a requirement to return a location url in headers which actually starts with the baseUrl.

I am using below syntax in headers to return the complete url, but I am not getting the actual container port instead it returns me the port set in settings.

{{baseUrl}}/CheckStatus

Actual Behaviour: http://120.0.0.1:3000/CheckStatus
Expected Behaviour: http://120.0.0.1:67503/CheckStatus

Mockoon UI version : 8.0.0
Mockoon image version : mockoon/cli:6.2.0

Windows 10 Enterprise v10.0.19045

Metadata

Metadata

Assignees

Labels

component:lib-commons-serverIssue related to the @mockoon/commons-server libeffort:easyQuick fixes or small taskspriority:lowNice-to-have features or minor issuesrequires:documentationRequires a documentation updatestatus:approvedIssue confirmed for implementation

Projects

Status

📦 Released (v9.5.0)

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions