mirror of
https://github.com/hassio-addons/addon-mopidy.git
synced 2025-05-05 03:51:35 +00:00
🔨 Updates for upstream Supervisor changes
This commit is contained in:
parent
0a177d6b62
commit
f27b0ce15e
3 changed files with 8 additions and 8 deletions
|
@ -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
|
||||||
|
|
|
@ -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 /proc/1/fd/1 error;
|
error_log /proc/1/fd/1 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 /proc/1/fd/1 hassio;
|
access_log /proc/1/fd/1 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