Monitor and API port form env