1
0
Fork 0
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:
OniriCorpe 2023-12-24 23:38:49 +01:00 committed by GitHub
commit 835cc60cc0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}