🔨 Add disable telemetry as an option

This commit is contained in:
Timmo 2019-04-18 10:45:19 +01:00
parent 59da1da6af
commit d96c493d71
3 changed files with 13 additions and 3 deletions

View file

@ -70,7 +70,8 @@ Example add-on configuration:
],
"init_commands": [
"ls -la"
]
],
"disable_telemetry": false
}
```
@ -127,6 +128,10 @@ Customize your VSCode environment even more with the `init_commands` option.
Add one or more shell commands to the list, and they will be executed every
single time this add-on starts.
### Option: `disable_telemetry`
Disables annonymous usage telemetry data from being sent to code-server.
### Option: `leave_front_door_open`
Adding this option to the add-on configuration allows you to disable

View file

@ -36,7 +36,8 @@
"certfile": "fullchain.pem",
"keyfile": "privkey.pem",
"packages": [],
"init_commands": []
"init_commands": [],
"disable_telemetry": false
},
"schema": {
"log_level": "match(^(trace|debug|info|notice|warning|error|fatal)$)?",
@ -45,6 +46,7 @@
"keyfile": "str",
"packages": ["str"],
"init_commands": ["str"],
"disable_telemetry": "bool?",
"leave_front_door_open": "bool?"
}
}

View file

@ -12,7 +12,10 @@ options+=(--user-data-dir "/data/vscode")
options+=(--extensions-dir "/data/vscode/extensions")
options+=(--host 127.0.0.1)
options+=(--allow-http)
options+=(--disable-telemetry)
if bashio::config.true 'disable_telemetry'; then
options+=(--disable-telemetry)
fi
# Disable code authentication, we use HA authentication
options+=(--no-auth)