Skip to content

Commit

Permalink
Merge pull request #31 from finitelabs/config-schema
Browse files Browse the repository at this point in the history
Update config schema with SSL and auth properties
  • Loading branch information
derek-miller authored Feb 18, 2024
2 parents 0f41dd2 + 8c8f353 commit c5f4852
Showing 1 changed file with 36 additions and 1 deletion.
37 changes: 36 additions & 1 deletion config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,43 @@
"default": 4050,
"minimum": 1,
"required": true
},
"ssl": {
"title": "Enable Websocket SSL",
"type": "boolean",
"required": false,
"default": false
},
"auth": {
"type": "object",
"default": {},
"required": false,
"properties": {
"username": {
"title": "Username",
"type": "string",
"required": true
},
"password": {
"title": "Password",
"type": "string",
"required": true,
"options": {
"hidden": true
}
}
}
}
}
},
"form": ["name", "port"]
"layout": [
"name",
"port",
"ssl",
{
"type": "section",
"title": "Authentication",
"items": ["auth.username", "auth.password"]
}
]
}

0 comments on commit c5f4852

Please sign in to comment.