We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1852f27 commit e8a0c0bCopy full SHA for e8a0c0b
api/parts/mgmt/ip.js
@@ -16,8 +16,8 @@ var ip = {},
16
*/
17
ip.getHost = function(callback) {
18
// If host is set in config.js use that, otherwise get the external IP from ifconfig.me
19
- var domain = plugins.getConfig("api").domain;
20
- if (typeof domain !== "undefined" && domain !== "") {
+ var domain = plugins.getConfig("api").domain || process.env.COUNTLY_CONFIG_HOSTNAME;
+ if (domain) {
21
if (domain.indexOf("://") === -1) {
22
domain = "http://" + domain;
23
}
0 commit comments