- Create a new script `run.sh` for initializing and launching the GVM add-on. - Ensure required environment variables `USERNAME` and `PASSWORD` are set. - Set the timezone if the `TZ` variable is provided. - Initialize a data directory at `/data` if it does not exist. - Launch the GVM service and log output to a file. fix(sonarqube): fix config.json
43 lines
1011 B
JSON
43 lines
1011 B
JSON
{
|
|
"name": "GVM Scanner",
|
|
"version": "0.0.1-beta",
|
|
"slug": "gvm",
|
|
"description": "Run a GVM (OpenVAS) scanner as a Home Assistant add-on.",
|
|
"startup": "services",
|
|
"boot": "auto",
|
|
"init": false,
|
|
"arch": ["amd64", "aarch64"],
|
|
"map": ["config:rw"],
|
|
"options": {
|
|
"username": "admin",
|
|
"password": "changeme",
|
|
"ui_port": 9392,
|
|
"TZ": "Europe/Rome",
|
|
"HTTPS": "false",
|
|
"SSHD": "true",
|
|
"DB_PASSWORD": "changeme"
|
|
},
|
|
"schema": {
|
|
"username": "str",
|
|
"password": "str",
|
|
"ui_port": "int",
|
|
"TZ": "str",
|
|
"HTTPS": "bool",
|
|
"SSHD": "bool",
|
|
"DB_PASSWORD": "str"
|
|
},
|
|
"ports": {
|
|
"9392/tcp": 9392
|
|
},
|
|
"ports_description": {
|
|
"9392/tcp": "Web Interface"
|
|
},
|
|
"webui": "http://[HOST]:[PORT:9392]",
|
|
"environment": {
|
|
"TZ": "Europe/Rome",
|
|
"HTTPS": "false",
|
|
"SSHD": "true",
|
|
"DB_PASSWORD": "changeme"
|
|
}
|
|
}
|
|
|