Bind REST API to localhost by default
Binding to localhost by default is more secure than binding to all interfaces.
This commit is contained in:
@ -598,8 +598,7 @@ configuration file.
|
||||
#### `admin_host`
|
||||
|
||||
The network interface where the HTTP admin interface listens on. The default
|
||||
value is the IPv6 address `::` which listens on all available network
|
||||
interfaces.
|
||||
value is the IPv4 address `127.0.0.1` which only listens for local connections.
|
||||
|
||||
#### `admin_port`
|
||||
|
||||
|
@ -32,7 +32,7 @@ MXS_BEGIN_DECLS
|
||||
|
||||
/** Default port where the REST API listens */
|
||||
#define DEFAULT_ADMIN_HTTP_PORT 8989
|
||||
#define DEFAULT_ADMIN_HOST "::"
|
||||
#define DEFAULT_ADMIN_HOST "127.0.0.1"
|
||||
|
||||
#define RELEASE_STR_LENGTH 256
|
||||
#define SYSNAME_LEN 256
|
||||
|
@ -2,6 +2,7 @@
|
||||
threads=4
|
||||
admin_auth=false
|
||||
log_info=1
|
||||
admin_host=::
|
||||
|
||||
[MySQL Monitor]
|
||||
type=monitor
|
||||
|
Reference in New Issue
Block a user