mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-21 09:12:09 +00:00
file share: route the bot's client through config + shared auth
file_search_functions was the only bot-side service client that hardcoded the musician's LAN address and sent no auth header. Both musician endpoints it calls (/get_share_list, /get_share_links) run _authorize_request(), so the whole file-share feature 401'd on any deployment that set CONJURER_API_KEY - which the deployment guides instruct you to do - and the hardcoded IP made a musician on another host (the Proxmox/docker split) unreachable regardless. Use FILE_SERVICE_ADDRESS + service_headers() like music_functions does, add the two endpoint paths to constants alongside the existing ones, and set an explicit timeout so a wedged musician can't hang the calling cog. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -82,6 +82,8 @@ MUZYKA_MOJEGO_LUDU_PLAJLISTA = 30
|
||||
GET_MP3 = "/mp3"
|
||||
SEND_MP3 = "/update_mp3"
|
||||
GET_PLAYLIST = "/get_music"
|
||||
GET_SHARE_LIST = "/get_share_list"
|
||||
GET_SHARE_LINKS = "/get_share_links"
|
||||
ADD_TO_PRIO_PLAYLIST = "/add_to_priority"
|
||||
CREATE_PRIO_PLAYLIST = "/create_priority_playlist"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user