mirror of
https://github.com/hassio-addons/addon-glances.git
synced 2025-05-05 11:31:31 +00:00
🔨 Updates for upstream Supervisor changes
This commit is contained in:
parent
eb1c56b556
commit
f326d9ab2e
4 changed files with 10 additions and 10 deletions
|
@ -5,7 +5,7 @@
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
declare port
|
declare port
|
||||||
declare certfile
|
declare certfile
|
||||||
declare hassio_dns
|
declare dns_host
|
||||||
declare ingress_interface
|
declare ingress_interface
|
||||||
declare ingress_port
|
declare ingress_port
|
||||||
declare keyfile
|
declare keyfile
|
||||||
|
@ -34,5 +34,5 @@ ingress_interface=$(bashio::addon.ip_address)
|
||||||
sed -i "s/%%port%%/${ingress_port}/g" /etc/nginx/servers/ingress.conf
|
sed -i "s/%%port%%/${ingress_port}/g" /etc/nginx/servers/ingress.conf
|
||||||
sed -i "s/%%interface%%/${ingress_interface}/g" /etc/nginx/servers/ingress.conf
|
sed -i "s/%%interface%%/${ingress_interface}/g" /etc/nginx/servers/ingress.conf
|
||||||
|
|
||||||
hassio_dns=$(bashio::dns.host)
|
dns_host=$(bashio::dns.host)
|
||||||
sed -i "s/%%hassio_dns%%/${hassio_dns}/g" /etc/nginx/includes/resolver.conf
|
sed -i "s/%%dns_host%%/${dns_host}/g" /etc/nginx/includes/resolver.conf
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
resolver %%hassio_dns%%;
|
resolver %%dns_host%%;
|
||||||
|
|
|
@ -36,7 +36,7 @@ function authenticate()
|
||||||
body = ngx.encode_args({["username"]=username, ["password"]=password}),
|
body = ngx.encode_args({["username"]=username, ["password"]=password}),
|
||||||
headers = {
|
headers = {
|
||||||
["Content-Type"] = "application/x-www-form-urlencoded",
|
["Content-Type"] = "application/x-www-form-urlencoded",
|
||||||
["X-HASSIO-KEY"] = os.getenv("HASSIO_TOKEN"),
|
["X-Supervisor-Token"] = os.getenv("SUPERVISOR_TOKEN"),
|
||||||
},
|
},
|
||||||
keepalive_timeout = 60,
|
keepalive_timeout = 60,
|
||||||
keepalive_pool = 10
|
keepalive_pool = 10
|
||||||
|
|
|
@ -17,7 +17,7 @@ pcre_jit on;
|
||||||
error_log /dev/stdout error;
|
error_log /dev/stdout error;
|
||||||
|
|
||||||
# Load allowed environment vars
|
# Load allowed environment vars
|
||||||
env HASSIO_TOKEN;
|
env SUPERVISOR_TOKEN;
|
||||||
env DISABLE_HA_AUTHENTICATION;
|
env DISABLE_HA_AUTHENTICATION;
|
||||||
|
|
||||||
# Load dynamic modules.
|
# Load dynamic modules.
|
||||||
|
@ -31,11 +31,11 @@ events {
|
||||||
http {
|
http {
|
||||||
include /etc/nginx/includes/mime.types;
|
include /etc/nginx/includes/mime.types;
|
||||||
|
|
||||||
log_format hassio '[$time_local] $status '
|
log_format homeassistant '[$time_local] $status '
|
||||||
'$http_x_forwarded_for($remote_addr) '
|
'$http_x_forwarded_for($remote_addr) '
|
||||||
'$request ($http_user_agent)';
|
'$request ($http_user_agent)';
|
||||||
|
|
||||||
access_log /dev/stdout hassio;
|
access_log /dev/stdout homeassistant;
|
||||||
client_max_body_size 4G;
|
client_max_body_size 4G;
|
||||||
default_type application/octet-stream;
|
default_type application/octet-stream;
|
||||||
gzip on;
|
gzip on;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue