mirror of
https://github.com/YunoHost-Apps/adguardhome_ynh.git
synced 2024-09-03 18:06:23 +02:00
Merge pull request #150 from YunoHost-Apps/disabling-update-api
disabling the auto-update API point
This commit is contained in:
commit
835cc60cc0
1 changed files with 6 additions and 0 deletions
|
@ -29,3 +29,9 @@ location /dns-query {
|
||||||
proxy_connect_timeout 6s;
|
proxy_connect_timeout 6s;
|
||||||
proxy_pass http://127.0.0.1:__PORT__/dns-query;
|
proxy_pass http://127.0.0.1:__PORT__/dns-query;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# disabling the API point of the built-in updater (which can break the installation)
|
||||||
|
# so the user must update using the YNH package
|
||||||
|
location __PATH__/control/update {
|
||||||
|
return 403;
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue