Configuration happens in https://github.com/adobe-research/node-theseus/blob/master/bin/node-theseus#L41 with command-line flags. I'm not opposed to also supporting environment variables, but there should also be a command-line flag, and the environment variable name should probably be Theseus-specific, like `THESEUS_PORT`.