Add GVM (OpenVAS) add-on initialization script
- 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
This commit is contained in:
43
gvm/config.json
Normal file
43
gvm/config.json
Normal file
@@ -0,0 +1,43 @@
|
||||
{
|
||||
"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"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user