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:
Markus Mäkelä
2017-10-22 09:57:12 +03:00
parent 0b1e2ae0a5
commit 284cd50412
3 changed files with 3 additions and 3 deletions

View File

@ -598,8 +598,7 @@ configuration file.
#### `admin_host` #### `admin_host`
The network interface where the HTTP admin interface listens on. The default The network interface where the HTTP admin interface listens on. The default
value is the IPv6 address `::` which listens on all available network value is the IPv4 address `127.0.0.1` which only listens for local connections.
interfaces.
#### `admin_port` #### `admin_port`

View File

@ -32,7 +32,7 @@ MXS_BEGIN_DECLS
/** Default port where the REST API listens */ /** Default port where the REST API listens */
#define DEFAULT_ADMIN_HTTP_PORT 8989 #define DEFAULT_ADMIN_HTTP_PORT 8989
#define DEFAULT_ADMIN_HOST "::" #define DEFAULT_ADMIN_HOST "127.0.0.1"
#define RELEASE_STR_LENGTH 256 #define RELEASE_STR_LENGTH 256
#define SYSNAME_LEN 256 #define SYSNAME_LEN 256

View File

@ -2,6 +2,7 @@
threads=4 threads=4
admin_auth=false admin_auth=false
log_info=1 log_info=1
admin_host=::
[MySQL Monitor] [MySQL Monitor]
type=monitor type=monitor