Read configuration from AKKA's application.conf
Human friendly name of this server. Defaults to WebServer.
Hostname or IP address to bind. 0.0.0.0 will bind to all addresses.
You can also specify comma separated hostnames/ip address like localhost,192.168.1.1.
Defaults to localhost.
IP port number to bind to. Defaults to 8888.
SSL protocol configuration. If None, then SSL will not be turned on.
Defaults to None.
HTTP protocol configuration. Default to a and instance of HttpConfig with default settings.
Hostname or IP address to bind.
Hostname or IP address to bind. 0.0.0.0 will bind to all addresses.
You can also specify comma separated hostnames/ip address like localhost,192.168.1.1.
Defaults to localhost.
HTTP protocol configuration.
HTTP protocol configuration. Default to a and instance of HttpConfig with default settings.
IP port number to bind to.
IP port number to bind to. Defaults to 8888.
Human friendly name of this server.
Human friendly name of this server. Defaults to WebServer.
SSL protocol configuration.
SSL protocol configuration. If None, then SSL will not be turned on.
Defaults to None.
Validate current configuration settings.
Validate current configuration settings. Throws an exception if configuration has errors.
Web server configuration
The configuration can be optionally loaded from Akka's application.conf
file. The following configuration file: {{{ akka-config-example { server-name=AkkaConfigExample hostname=localhost port=9000 } }}} can be loaded as follows: {{{ object MyWebServerConfig extends ExtensionId[WebServerConfig] with ExtensionIdProvider { override def lookup = MyWebServerConfig override def createExtension(system: ExtendedActorSystem) = new WebServerConfig(system.settings.config, "akka-config-example") } val myWebServerConfig = MyWebServerConfig(actorSystem) val webServer = new WebServer(myWebServerConfig, routes) webServer.start() }}}Human friendly name of this server. Defaults to
WebServer.Hostname or IP address to bind.
0.0.0.0will bind to all addresses. You can also specify comma separated hostnames/ip address likelocalhost,192.168.1.1. Defaults tolocalhost.IP port number to bind to. Defaults to
8888.SSL protocol configuration. If
None, then SSL will not be turned on. Defaults toNone.HTTP protocol configuration. Default to a and instance of HttpConfig with default settings.