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
.
If a connection is idle for this duration, it will be closed. The default is 0
,
which indicates NO timeout and idle connections will NOT be closed.
Dumps request and response data to the debug logger. To see the output, you need to
set the logging level for io.netty.handler.logging.LoggingHandler
to debug. The default is false
.
Optional web log configuration. If None
, web log events will NOT be generated.
SSL protocol configuration. If None
, then SSL will not be turned on.
Defaults to None
.
HTTP protocol configuration. Defaults to an instance of org.mashupbots.socko.webserver.HttpConfig with default settings.
TCP IP protocol configuration. Defaults to an instance of org.mashupbots.socko.webserver.TcpConfig 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. Defaults to an instance of org.mashupbots.socko.webserver.HttpConfig with default settings.
If a connection is idle for this duration, it will be closed.
If a connection is idle for this duration, it will be closed. The default is 0
,
which indicates NO timeout and idle connections will NOT be closed.
Dumps request and response data to the debug logger.
Dumps request and response data to the debug logger. To see the output, you need to
set the logging level for io.netty.handler.logging.LoggingHandler
to debug. The default is false
.
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
.
TCP IP protocol configuration.
TCP IP protocol configuration. Defaults to an instance of org.mashupbots.socko.webserver.TcpConfig with default settings.
Validate current configuration settings.
Validate current configuration settings. Throws an exception if configuration has errors.
Optional web log configuration.
Optional web log configuration. If None
, web log events will NOT be generated.
Web server configuration
The configuration can be optionally loaded from Akka's application.conf
file.
The following example configuration file:
can be loaded as follows:
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 likelocalhost,192.168.1.1
. Defaults tolocalhost
.IP port number to bind to. Defaults to
8888
.If a connection is idle for this duration, it will be closed. The default is
0
, which indicates NO timeout and idle connections will NOT be closed.Dumps request and response data to the debug logger. To see the output, you need to set the logging level for
io.netty.handler.logging.LoggingHandler
to debug. The default isfalse
.Optional web log configuration. If
None
, web log events will NOT be generated.SSL protocol configuration. If
None
, then SSL will not be turned on. Defaults toNone
.HTTP protocol configuration. Defaults to an instance of org.mashupbots.socko.webserver.HttpConfig with default settings.
TCP IP protocol configuration. Defaults to an instance of org.mashupbots.socko.webserver.TcpConfig with default settings.