def get_nginx_configuration_spec(port_spec_dict, docker_bridge_ip):
nginx_http_config, nginx_stream_config = "<STR_LIT>", "<STR_LIT>"<EOL>for port_spec in port_spec_dict['<STR_LIT>']:<EOL><INDENT>if port_spec['<STR_LIT:type>'] == '<STR_LIT:http>':<EOL><INDENT>nginx_http_config += _nginx_http_spec(port_spec, docker_bridge_ip)<EOL><DEDENT>elif port_spec['<STR_LIT:type>'] == '<STR_LIT>':<EOL><INDENT>nginx_stream_config += _nginx_stream_spec(port_spec, docker_bridge_ip)<EOL><DEDENT><DEDENT>return {'<STR_LIT:http>': nginx_http_config, '<STR_LIT>': nginx_stream_config}<EOL>
This function will take in a port spec as specified by the port_spec compiler and
    will output an nginx web proxy config string. This string can then be written to a file
    and used running nginx