Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4849

Simple environment variable usage not working for me

$
0
0

@jdtommy wrote:

here is my simple listen section of the haproxy config file:

listen graph_front
   bind *:8182
   mode tcp
   server graph_server graph.server.com:8182

this works just fine, but I need the address and port to be a environment variable. So I changed it to this:

listen graph_front
   bind *:8182
   mode tcp
   server graph_server "$GRAPH_ADDRESS":"$GRAPH_PORT"

the haproxy server restarts just fine, but it no longer forwards to the address in the environment variables.

any ideas?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4849

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>