def __init__(self, external_addresses, internal_addresses, management_addresses, state_file, uid=None, gid=<NUM_LIT>, static_dir="<STR_LIT>"):
self.external_addresses = external_addresses<EOL>self.internal_addresses = internal_addresses<EOL>self.management_addresses = management_addresses<EOL>self.state_file = state_file<EOL>self.uid = uid<EOL>self.gid = gid<EOL>self.static_dir = static_dir<EOL>
Constructor.

Takes one parameter, the dict of ports to listen on.
The key in this dict is the port number, and the value
is if it's an internal endpoint or not.
Internal endpoints do not have X-Forwarded-* stripped;
other ones do, and have X-Forwarded-For added.