This module determines the servers internal host name, and then creates a response header for you.
This module is ideal for clustered setups, or docker swarms, where the code could be running on one of many servers. In Docker, can you search for this hostname in portainer or via the CLI, making debugging much easier
The module sets a header called
The module listens to the onRequestCapture ColdBox interception point.
With Errors, this function might not run... if that interception point is not announced. You might need to add to your Application.cfc directly if errors occur before the ColdBox framework loads.
This module looks for the hostname a few different ways.
var inet = CreateObject("java", "java.net.InetAddress"); var hostname = inet.getLocalHost().getHostName();
Here are all the versions for this package. Please note that you can leverage CommandBox package versioning to install any package you like. Please refer to our managing package version guide for more information.
|Version||Created||Last Update||Published By||Stable||Download|
|1.0.9||Mar 28 2018 11:11 AM||Mar 28 2018 11:11 AM||Gavin Pickin (gpickin)|
|1.0.8||Mar 28 2018 11:05 AM||Mar 28 2018 11:05 AM||Gavin Pickin (gpickin)|
|1.0.7||Mar 22 2018 12:37 PM||Mar 22 2018 12:37 PM||Gavin Pickin (gpickin)|
|1.0.6||Mar 22 2018 12:24 PM||Mar 22 2018 12:24 PM||Gavin Pickin (gpickin)|
|1.0.4||Mar 22 2018 12:06 PM||Mar 22 2018 12:06 PM||Gavin Pickin (gpickin)|
|1.0.3||Mar 22 2018 11:44 AM||Mar 22 2018 11:44 AM||Gavin Pickin (gpickin)|
|1.0.2||Mar 22 2018 01:15 AM||Mar 22 2018 01:15 AM||Gavin Pickin (gpickin)|