require username/password for API server

This commit is contained in:
Matthias 2019-05-25 14:42:13 +02:00
parent febcc3dddc
commit 90ece09ee9

View File

@ -166,8 +166,10 @@ CONF_SCHEMA = {
"minimum": 1024,
"maximum": 65535
},
'username': {'type': 'string'},
'password': {'type': 'string'},
},
'required': ['enabled', 'listen_ip_address', 'listen_port']
'required': ['enabled', 'listen_ip_address', 'listen_port', 'username', 'password']
},
'db_url': {'type': 'string'},
'initial_state': {'type': 'string', 'enum': ['running', 'stopped']},