ERB support in configuration files

I want to use ERB in configuration files to be able to set server(and others) string from ENV variable.