mirror of
https://github.com/hassio-addons/addon-mopidy.git
synced 2025-05-05 12:01:52 +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}),
|
||||
headers = {
|
||||
["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_pool = 10
|
||||
|
@ -80,4 +80,4 @@ if not os.getenv('DISABLE_HA_AUTHENTICATION') then
|
|||
ngx.say('401 Access Denied')
|
||||
ngx.exit(ngx.HTTP_UNAUTHORIZED)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue