resolveSecurePort static method

int resolveSecurePort(
  1. int? securePort, {
  2. APIConfig? apiConfig,
  3. bool? letsEncrypt,
})

Implementation

static int resolveSecurePort(int? securePort,
    {APIConfig? apiConfig, bool? letsEncrypt}) {
  securePort ??= apiConfig?.getPath('server', 'securePort');

  return (letsEncrypt ?? false)
      ? (securePort != null && securePort > 10 ? securePort : 443)
      : (securePort ?? -1);
}