Add note to sync changes in blocklist scripts
This commit is contained in:
parent
ec02e9afa2
commit
838c2084a9
|
@ -42,7 +42,10 @@ do
|
||||||
docker exec sia siac skynet blocklist add "${skylink}"
|
docker exec sia siac skynet blocklist add "${skylink}"
|
||||||
|
|
||||||
# Remove from NGINX cache
|
# Remove from NGINX cache
|
||||||
# NOTE: If there are changes to how the NGINX cache is being cleared, the same changes need to be applied to the /setup-scripts/blocklist-airtable.py script.
|
# NOTE:
|
||||||
|
# If there are changes to how the NGINX cache is being cleared, the same
|
||||||
|
# changes need to be applied to the /setup-scripts/blocklist-airtable.py
|
||||||
|
# script.
|
||||||
cached_files_command="find /data/nginx/cache/ -type f | xargs -r grep -Els '^Skynet-Skylink: ${skylink}'"
|
cached_files_command="find /data/nginx/cache/ -type f | xargs -r grep -Els '^Skynet-Skylink: ${skylink}'"
|
||||||
docker exec -it nginx bash -c "${cached_files_command}" | xargs -r rm
|
docker exec -it nginx bash -c "${cached_files_command}" | xargs -r rm
|
||||||
|
|
||||||
|
|
|
@ -141,6 +141,10 @@ async def block_skylinks_from_airtable():
|
||||||
)
|
)
|
||||||
return await send_msg(message, force_notify=False)
|
return await send_msg(message, force_notify=False)
|
||||||
|
|
||||||
|
# Remove from NGINX cache
|
||||||
|
# NOTE:
|
||||||
|
# If there are changes to how the NGINX cache is being cleared, the same
|
||||||
|
# changes need to be applied to the /scripts/blocklist-skylink.sh script.
|
||||||
print("Searching nginx cache for blocked files")
|
print("Searching nginx cache for blocked files")
|
||||||
cached_files_count = 0
|
cached_files_count = 0
|
||||||
batch_size = 1000
|
batch_size = 1000
|
||||||
|
|
Reference in New Issue