How to configure mountebank to handle subdomains?

32 views
Skip to first unread message

Noel Yap

unread,
Mar 5, 2024, 7:40:50 PM3/5/24
to mountebank-discuss
https://stackoverflow.com/questions/78111215/how-to-configure-mountebank-to-handle-subdomains



I have a service calling a third-party service, say, example.com. Some of the calls are to www.example.com and others are to ftp.example.com.

As such, the Helm chart is configured with something like EXAMPLE_AUTHORITY: example.com which I'm hoping can be changed to EXAMPLE_AUTHORITY: mountebank.mydomain.com and the above calls would go to www.mountebank.mydomain.com and ftp.mountebank.mydomain.com, respectively.

I've configured mountebank to stub out example.com. How do I configure it so that calls to both www.mountebank.mydomain.com and ftp.mountebank.mydomain.com are handled appropriately (eg www.mountebank.mydomain.com is proxied to www.example.com and ftp.mountebank.mydomain.com is proxied to ftp.example.com)?

Do I need separate stubs for each of the subdomains?

Reply all
Reply to author
Forward
0 new messages