mirror of
https://github.com/hassio-addons/addon-vscode.git
synced 2025-05-03 18:51:23 +00:00
🔨 Re-branding
This commit is contained in:
parent
c4b002b68f
commit
51d0f8f96d
14 changed files with 31 additions and 33 deletions
4
.github/settings.yml
vendored
4
.github/settings.yml
vendored
|
@ -1,8 +1,8 @@
|
||||||
---
|
---
|
||||||
repository:
|
repository:
|
||||||
description: "Visual Studio Code - Community Hass.io Add-on for Home Assistant"
|
description: "Visual Studio Code - Home Assistant Community Add-ons"
|
||||||
homepage: https://addons.community
|
homepage: https://addons.community
|
||||||
topics: vscode, ide, code-server, hassio-addons, hassio, hass, home-assistant, homeassistant
|
topics: vscode, ide, code-server, addon, addons, home-assistant, homeassistant
|
||||||
private: false
|
private: false
|
||||||
has_issues: true
|
has_issues: true
|
||||||
has_projects: false
|
has_projects: false
|
||||||
|
|
26
README.md
26
README.md
|
@ -1,4 +1,4 @@
|
||||||
# Community Hass.io Add-ons: Visual Studio Code
|
# Home Assistant Community Add-on: Visual Studio Code
|
||||||
|
|
||||||
[![GitHub Release][releases-shield]][releases]
|
[![GitHub Release][releases-shield]][releases]
|
||||||
![Project Stage][project-stage-shield]
|
![Project Stage][project-stage-shield]
|
||||||
|
@ -41,9 +41,9 @@ instantly, without the need for configuring anything.
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
The installation of this add-on is pretty straightforward and not different in
|
The installation of this add-on is pretty straightforward and not different in
|
||||||
comparison to installing any other Hass.io add-on.
|
comparison to installing any other Home Assistant add-on.
|
||||||
|
|
||||||
1. Search for the "Visual Studio Code" add-on in the Hass.io add-on store
|
1. Search for the "Visual Studio Code" add-on in the Supervisor add-on store
|
||||||
and install it.
|
and install it.
|
||||||
1. Start the "Visual Studio Code" add-on.
|
1. Start the "Visual Studio Code" add-on.
|
||||||
1. Check the logs of the "Visual Studio Code" add-on to see if everything went
|
1. Check the logs of the "Visual Studio Code" add-on to see if everything went
|
||||||
|
@ -93,19 +93,19 @@ you are troubleshooting.
|
||||||
Enables/Disables SSL (HTTPS). Set it `true` to enable it, `false` otherwise.
|
Enables/Disables SSL (HTTPS). Set it `true` to enable it, `false` otherwise.
|
||||||
|
|
||||||
**Note**: _The SSL settings only apply to direct access and has no effect
|
**Note**: _The SSL settings only apply to direct access and has no effect
|
||||||
on the Hass.io Ingress service._
|
on the Ingress service._
|
||||||
|
|
||||||
### Option: `certfile`
|
### Option: `certfile`
|
||||||
|
|
||||||
The certificate file to use for SSL.
|
The certificate file to use for SSL.
|
||||||
|
|
||||||
**Note**: _The file MUST be stored in `/ssl/`, which is default for Hass.io_
|
**Note**: _The file MUST be stored in `/ssl/`, which is the default_
|
||||||
|
|
||||||
### Option: `keyfile`
|
### Option: `keyfile`
|
||||||
|
|
||||||
The private key file to use for SSL.
|
The private key file to use for SSL.
|
||||||
|
|
||||||
**Note**: _The file MUST be stored in `/ssl/`, which is default for Hass.io_
|
**Note**: _The file MUST be stored in `/ssl/`, which is the default_
|
||||||
|
|
||||||
### Option: `packages`
|
### Option: `packages`
|
||||||
|
|
||||||
|
@ -156,10 +156,8 @@ an adjustment to your ESPHome add-on in order to function.
|
||||||
ESPHome does not support authentication yet. The ESPHome add-on
|
ESPHome does not support authentication yet. The ESPHome add-on
|
||||||
configuration would look like this:
|
configuration would look like this:
|
||||||
|
|
||||||
```json
|
```yaml
|
||||||
{
|
leave_front_door_open: true
|
||||||
"leave_front_door_open": true
|
|
||||||
}
|
|
||||||
```
|
```
|
||||||
|
|
||||||
1. Save the add-on configuration.
|
1. Save the add-on configuration.
|
||||||
|
@ -219,7 +217,7 @@ Got questions?
|
||||||
|
|
||||||
You have several options to get them answered:
|
You have several options to get them answered:
|
||||||
|
|
||||||
- The [Community Hass.io Add-ons Discord chat server][discord] for add-on
|
- The [Home Assistant Community Add-ons Discord chat server][discord] for add-on
|
||||||
support and feature requests.
|
support and feature requests.
|
||||||
- The [Home Assistant Discord chat server][discord-ha] for general Home
|
- The [Home Assistant Discord chat server][discord-ha] for general Home
|
||||||
Assistant discussions and questions.
|
Assistant discussions and questions.
|
||||||
|
@ -245,11 +243,11 @@ The original setup of this repository is by [Franck Nijhof][frenck].
|
||||||
For a full list of all authors and contributors,
|
For a full list of all authors and contributors,
|
||||||
check [the contributor's page][contributors].
|
check [the contributor's page][contributors].
|
||||||
|
|
||||||
## We have got some Hass.io add-ons for you
|
## We have got some Home Assistant add-ons for you
|
||||||
|
|
||||||
Want some more functionality to your Hass.io Home Assistant instance?
|
Want some more functionality to your Home Assistant instance?
|
||||||
|
|
||||||
We have created multiple add-ons for Hass.io. For a full list, check out
|
We have created multiple add-ons for Home Assistant. For a full list, check out
|
||||||
our [GitHub Repository][repository].
|
our [GitHub Repository][repository].
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# Community Hass.io Add-ons: Visual Studio Code
|
# Home Assistant Community Add-on: Visual Studio Code
|
||||||
|
|
||||||
[![Release][release-shield]][release] ![Project Stage][project-stage-shield] ![Project Maintenance][maintenance-shield]
|
[![Release][release-shield]][release] ![Project Stage][project-stage-shield] ![Project Maintenance][maintenance-shield]
|
||||||
|
|
||||||
|
@ -30,8 +30,8 @@ instantly, without the need for configuring anything.
|
||||||
{% if channel == "edge" %}
|
{% if channel == "edge" %}
|
||||||
## WARNING! THIS IS AN EDGE VERSION!
|
## WARNING! THIS IS AN EDGE VERSION!
|
||||||
|
|
||||||
This Hass.io Add-ons repository contains edge builds of add-ons. Edge builds
|
This Home Assistant Add-ons repository contains edge builds of add-ons.
|
||||||
add-ons are based upon the latest development version.
|
Edge builds add-ons are based upon the latest development version.
|
||||||
|
|
||||||
- They may not work at all.
|
- They may not work at all.
|
||||||
- They might stop working at any time.
|
- They might stop working at any time.
|
||||||
|
@ -51,7 +51,7 @@ If you are more interested in stable releases of our add-ons:
|
||||||
{% if channel == "beta" %}
|
{% if channel == "beta" %}
|
||||||
## WARNING! THIS IS A BETA VERSION!
|
## WARNING! THIS IS A BETA VERSION!
|
||||||
|
|
||||||
This Hass.io Add-ons repository contains beta releases of add-ons.
|
This Home Assistant Add-ons repository contains beta releases of add-ons.
|
||||||
|
|
||||||
- They might stop working at any time.
|
- They might stop working at any time.
|
||||||
- They could have a negative impact on your system.
|
- They could have a negative impact on your system.
|
||||||
|
|
|
@ -160,4 +160,4 @@ LABEL \
|
||||||
org.label-schema.usage="https://github.com/hassio-addons/addon-vscode/tree/master/README.md" \
|
org.label-schema.usage="https://github.com/hassio-addons/addon-vscode/tree/master/README.md" \
|
||||||
org.label-schema.vcs-ref=${BUILD_REF} \
|
org.label-schema.vcs-ref=${BUILD_REF} \
|
||||||
org.label-schema.vcs-url="https://github.com/hassio-addons/addon-vscode" \
|
org.label-schema.vcs-url="https://github.com/hassio-addons/addon-vscode" \
|
||||||
org.label-schema.vendor="Community Hass.io Add-ons"
|
org.label-schema.vendor="Home Assistant Community Add-ons"
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
"80/tcp": null
|
"80/tcp": null
|
||||||
},
|
},
|
||||||
"ports_description": {
|
"ports_description": {
|
||||||
"80/tcp": "VSCode (Not required for Hass.io Ingress)"
|
"80/tcp": "VSCode (Not required for Ingress)"
|
||||||
},
|
},
|
||||||
"map": [
|
"map": [
|
||||||
"config:rw",
|
"config:rw",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/with-contenv bashio
|
#!/usr/bin/with-contenv bashio
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Community Hass.io Add-ons: Visual Studio Code
|
# Home Assistant Community Add-on: Visual Studio Code
|
||||||
# Sets up code-server.
|
# Sets up code-server.
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/with-contenv bashio
|
#!/usr/bin/with-contenv bashio
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Community Hass.io Add-ons: Visual Studio Code
|
# Home Assistant Community Add-on: Visual Studio Code
|
||||||
# Configures NGINX for use with code-server
|
# Configures NGINX for use with code-server
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
declare port
|
declare port
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/with-contenv bashio
|
#!/usr/bin/with-contenv bashio
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Community Hass.io Add-ons: Visual Studio Code
|
# Home Assistant Community Add-on: Visual Studio Code
|
||||||
# Persists user settings and installs custom user packages.
|
# Persists user settings and installs custom user packages.
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
readonly GIT_USER_PATH=/data/git
|
readonly GIT_USER_PATH=/data/git
|
||||||
|
|
|
@ -29,7 +29,7 @@ function authenticate()
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
--- HTTP request against Hassio API
|
--- HTTP request against the Supervisor API
|
||||||
local httpc = http.new()
|
local httpc = http.new()
|
||||||
local res, err = httpc:request_uri("http://supervisor.local.hass.io/auth", {
|
local res, err = httpc:request_uri("http://supervisor.local.hass.io/auth", {
|
||||||
method = "POST",
|
method = "POST",
|
||||||
|
@ -44,13 +44,13 @@ function authenticate()
|
||||||
|
|
||||||
--- Error during API request
|
--- Error during API request
|
||||||
if err then
|
if err then
|
||||||
ngx.log(ngx.WARN, "Error during Hassio user authentication.", err)
|
ngx.log(ngx.WARN, "Error during Home Assistant user authentication.", err)
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
--- No result? Something went wrong...
|
--- No result? Something went wrong...
|
||||||
if not res then
|
if not res then
|
||||||
ngx.log(ngx.WARN, "Error during Hassio user authentication.")
|
ngx.log(ngx.WARN, "Error during Home Assistant user authentication.")
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@ worker_processes 1;
|
||||||
# Enables the use of JIT for regular expressions to speed-up their processing.
|
# Enables the use of JIT for regular expressions to speed-up their processing.
|
||||||
pcre_jit on;
|
pcre_jit on;
|
||||||
|
|
||||||
# Write error log to Hass.io add-on log.
|
# Write error log to the add-on log.
|
||||||
error_log /proc/1/fd/1 error;
|
error_log /proc/1/fd/1 error;
|
||||||
|
|
||||||
# Load allowed environment vars
|
# Load allowed environment vars
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/execlineb -S0
|
#!/usr/bin/execlineb -S0
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Community Hass.io Add-ons: Visual Studio Code
|
# Home Assistant Community Add-on: Visual Studio Code
|
||||||
# Take down the S6 supervision tree when the code server fails
|
# Take down the S6 supervision tree when the code server fails
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
if { s6-test ${1} -ne 0 }
|
if { s6-test ${1} -ne 0 }
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/with-contenv bashio
|
#!/usr/bin/with-contenv bashio
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Community Hass.io Add-ons: Visual Studio Code
|
# Home Assistant Community Add-on: Visual Studio Code
|
||||||
# Runs the code server
|
# Runs the code server
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
declare -a options
|
declare -a options
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/execlineb -S0
|
#!/usr/bin/execlineb -S0
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Community Hass.io Add-ons: Visual Studio Code
|
# Home Assistant Community Add-on: Visual Studio Code
|
||||||
# Take down the S6 supervision tree when Nginx fails
|
# Take down the S6 supervision tree when Nginx fails
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
if { s6-test ${1} -ne 0 }
|
if { s6-test ${1} -ne 0 }
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/with-contenv bashio
|
#!/usr/bin/with-contenv bashio
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Community Hass.io Add-ons: Visual Studio Code
|
# Home Assistant Community Add-on: Visual Studio Code
|
||||||
# Runs the Nginx daemon
|
# Runs the Nginx daemon
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue