Use FQDN for server instead of localhost
Test if node_terminus and external_nodes are defined and set parameter only if both are defined