mirror of
https://github.com/hassio-addons/addon-vscode.git
synced 2025-05-03 18:51:23 +00:00
🔨 Add disable telemetry as an option
This commit is contained in:
parent
cefcf7b0ba
commit
ecab453e8b
3 changed files with 13 additions and 3 deletions
|
@ -70,7 +70,8 @@ Example add-on configuration:
|
||||||
],
|
],
|
||||||
"init_commands": [
|
"init_commands": [
|
||||||
"ls -la"
|
"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
|
Add one or more shell commands to the list, and they will be executed every
|
||||||
single time this add-on starts.
|
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`
|
### Option: `leave_front_door_open`
|
||||||
|
|
||||||
Adding this option to the add-on configuration allows you to disable
|
Adding this option to the add-on configuration allows you to disable
|
||||||
|
|
|
@ -36,7 +36,8 @@
|
||||||
"certfile": "fullchain.pem",
|
"certfile": "fullchain.pem",
|
||||||
"keyfile": "privkey.pem",
|
"keyfile": "privkey.pem",
|
||||||
"packages": [],
|
"packages": [],
|
||||||
"init_commands": []
|
"init_commands": [],
|
||||||
|
"disable_telemetry": false
|
||||||
},
|
},
|
||||||
"schema": {
|
"schema": {
|
||||||
"log_level": "match(^(trace|debug|info|notice|warning|error|fatal)$)?",
|
"log_level": "match(^(trace|debug|info|notice|warning|error|fatal)$)?",
|
||||||
|
@ -45,6 +46,7 @@
|
||||||
"keyfile": "str",
|
"keyfile": "str",
|
||||||
"packages": ["str"],
|
"packages": ["str"],
|
||||||
"init_commands": ["str"],
|
"init_commands": ["str"],
|
||||||
|
"disable_telemetry": "bool?",
|
||||||
"leave_front_door_open": "bool?"
|
"leave_front_door_open": "bool?"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,7 +12,10 @@ options+=(--user-data-dir "/data/vscode")
|
||||||
options+=(--extensions-dir "/data/vscode/extensions")
|
options+=(--extensions-dir "/data/vscode/extensions")
|
||||||
options+=(--host 127.0.0.1)
|
options+=(--host 127.0.0.1)
|
||||||
options+=(--allow-http)
|
options+=(--allow-http)
|
||||||
options+=(--disable-telemetry)
|
|
||||||
|
if bashio::config.true 'disable_telemetry'; then
|
||||||
|
options+=(--disable-telemetry)
|
||||||
|
fi
|
||||||
|
|
||||||
# Disable code authentication, we use HA authentication
|
# Disable code authentication, we use HA authentication
|
||||||
options+=(--no-auth)
|
options+=(--no-auth)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue