shorten proxy config code