def _nginx_http_spec(port_spec, bridge_ip):
server_string_spec = "<STR_LIT>"<EOL>server_string_spec += "<STR_LIT>".format(_nginx_max_file_size_string())<EOL>server_string_spec += "<STR_LIT>".format(_nginx_listen_string(port_spec))<EOL>server_string_spec += "<STR_LIT>".format(_nginx_server_name_string(port_spec))<EOL>server_string_spec += _nginx_location_spec(port_spec, bridge_ip)<EOL>server_string_spec += _custom_502_page()<EOL>server_string_spec += "<STR_LIT>"<EOL>return server_string_spec<EOL>
This will output the nginx HTTP config string for specific port spec