GatewayConfig constructor

const GatewayConfig({
  1. bool enabled = false,
  2. int port = 8080,
  3. String address = '0.0.0.0',
  4. bool writable = false,
  5. bool enableCache = true,
  6. int cacheSize = 104857600,
  7. String? gatewayDomain,
  8. bool enableSubdomainGateway = false,
  9. bool subdomainDNSLinkResolver = true,
  10. bool subdomainTLSRedirect = false,
  11. bool enableTls = false,
  12. String? certificatePath,
  13. String? privateKeyPath,
  14. String? certificatePassword,
  15. bool autoTls = false,
  16. String? autoTlsDomain,
  17. String? autoTlsEmail,
  18. String autoTlsProvider = 'letsencrypt',
  19. bool autoTlsAcceptTos = false,
  20. List<String> autoTlsSANs = const [],
  21. int tlsPort = 443,
  22. bool redirectHttpToHttps = false,
})

Creates a new GatewayConfig.

Implementation

const GatewayConfig({
  this.enabled = false,
  this.port = 8080,
  this.address = '0.0.0.0',
  this.writable = false,
  this.enableCache = true,
  this.cacheSize = 104857600, // 100MB
  this.gatewayDomain,
  this.enableSubdomainGateway = false,
  this.subdomainDNSLinkResolver = true,
  this.subdomainTLSRedirect = false,
  this.enableTls = false,
  this.certificatePath,
  this.privateKeyPath,
  this.certificatePassword,
  this.autoTls = false,
  this.autoTlsDomain,
  this.autoTlsEmail,
  this.autoTlsProvider = 'letsencrypt',
  this.autoTlsAcceptTos = false,
  this.autoTlsSANs = const [],
  this.tlsPort = 443,
  this.redirectHttpToHttps = false,
});