$unit->getConfig()->getListeners()
$unit->getConfig()->getListenerByPort(80)
// Create Nginx Unit listener $listener = new Listener('*:8800', 'routes/laravel'); // Add listener to Config and upload it $unit->getConfig()->addListener($listener);
$unit->getConfig()->uploadListenerFromFile('/home/ubuntu/example.pem', '*:80')
Last updated 1 year ago