Skip to content

fabio does not respect registry_consul_register_ip from ENV #77

@sielaq

Description

@sielaq

Starting fabio with different UI port like

ui_addr=:81 registry_consul_register_ip=:81 registry_consul_register_name=foo fabio

still register to consul with 9998, is UI port is hardcoded ?

2016/04/07 20:13:27 [INFO] Version 1.1.1 starting
2016/04/07 20:13:27 [INFO] Runtime config
{
    "Proxy": {
        "Strategy": "rnd",
        "MaxConn": 10000,
        "ShutdownWait": 0,
        "DialTimeout": 30000000000,
        "ResponseHeaderTimeout": 0,
        "KeepAliveTimeout": 0,
        "LocalIP": "10.0.2.15",
        "ClientIPHeader": "",
        "TLSHeader": "",
        "TLSHeaderValue": ""
    },
    "Registry": {
        "Backend": "consul",
        "Static": {
            "Routes": ""
        },
        "File": {
            "Path": ""
        },
        "Consul": {
            "Addr": "localhost:8500",
            "Token": "",
            "KVPath": "/fabio/config",
            "TagPrefix": "urlprefix-",
            "ServiceAddr": ":9998",
            "ServiceName": "foo",
            "CheckInterval": 1000000000,
            "CheckTimeout": 3000000000
        }
    },
    "Listen": [
        {
            "Addr": ":9999",
            "KeyFile": "",
            "CertFile": "",
            "ClientAuthFile": "",
            "TLS": false,
            "ReadTimeout": 0,
            "WriteTimeout": 0
        }
    ],
    "Metrics": [
        {
            "Target": "",
            "Prefix": "default",
            "Interval": 30000000000,
            "Addr": ""
        }
    ],
    "UI": {
        "Addr": ":81",
        "Color": "light-green",
        "Title": ""
    },
    "Runtime": {
        "GOGC": 800,
        "GOMAXPROCS": 1
    }
}
2016/04/07 20:13:27 [INFO] Setting GOGC=800
2016/04/07 20:13:27 [INFO] Using GOMAXPROCS=4 from env
2016/04/07 20:13:27 [INFO] Metrics disabled
2016/04/07 20:13:27 [INFO] consul: Connecting to "localhost:8500" in datacenter "unknown"
2016/04/07 20:13:27 [INFO] consul: Registered fabio as "foo-standalone-9998" with address ":9998" and health check to "http://[10.0.2.15]:9998/health"
2016/04/07 20:13:27 [INFO] Admin server listening on ":81"
2016/04/07 20:13:27 [INFO] Using routing strategy "rnd"
2016/04/07 20:13:27 [INFO] HTTP proxy listening on :9999
2016/04/07 20:13:27 [INFO] consul: Using dynamic routes
2016/04/07 20:13:27 [INFO] consul: Using tag prefix "urlprefix-"
2016/04/07 20:13:27 [INFO] consul: Watching KV path "/fabio/config"
2016/04/07 20:13:27 [INFO] consul: Manual config changed to #1
``

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions