Skip to content
Frank Schröder edited this page Jul 14, 2016 · 3 revisions

fabio is configured to listen on port 9999 for HTTP traffic and uses consul on localhost:8500 as the default registry backend. To configure additional listeners, different backends, enable metrics reporting or change other configuration parameters please check the well documented fabio.properties file.

Each property value can also be configured via a corresponding environment variable which has the dots replaced with underscores.

Starting with version 1.2 parameters can also be specified on the command line. Arguments are parsed in the following order:

  • properties file
  • environment variable
  • command line argument
Example
# fabio.properties
metrics.target = stdout

# correspondig env var (no prefix)
metrics_target=stdout ./fabio

# env var with FABIO_ prefix (>= 1.2)
FABIO_metrics_target=stdout ./fabio

# env var with FABIO_ prefix (case-insensitive) (>= 1.2)
FABIO_METRICS_TARGET=stdout ./fabio

# command line argument (>= 1.2)
./fabio -metrics.target stdout