GatewayConfig constructor
- bool enabled = false,
- int port = 8080,
- String address = '0.0.0.0',
- bool writable = false,
- bool enableCache = true,
- int cacheSize = 104857600,
- String? gatewayDomain,
- bool enableSubdomainGateway = false,
- bool subdomainDNSLinkResolver = true,
- bool subdomainTLSRedirect = false,
- bool enableTls = false,
- String? certificatePath,
- String? privateKeyPath,
- String? certificatePassword,
- bool autoTls = false,
- String? autoTlsDomain,
- String? autoTlsEmail,
- String autoTlsProvider = 'letsencrypt',
- bool autoTlsAcceptTos = false,
- List<
String> autoTlsSANs = const [], - int tlsPort = 443,
- bool redirectHttpToHttps = false,
- List<
String> corsOrigins = const ['http://localhost', 'http://127.0.0.1'], - String? autoTlsAccountKeyPath,
- String? autoTlsCertificatePath,
- String? autoTlsPrivateKeyPath,
- int autoTlsRenewalThresholdDays = 30,
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,
this.corsOrigins = const ['http://localhost', 'http://127.0.0.1'],
this.autoTlsAccountKeyPath,
this.autoTlsCertificatePath,
this.autoTlsPrivateKeyPath,
this.autoTlsRenewalThresholdDays = 30,
});