Editing FoolFuuka/Housekeeping

From Bibliotheca Anonoma

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 51: Line 51:


     php /home/atc/delete-by-search-query.php
     php /home/atc/delete-by-search-query.php
== Purging Files ==
Local files on the frontend/dumper server are automatically purged on image ban & image delete inside the web console.
Files on CDN2 require more work as they are on a separate server.
=== Manual Procedure (CDN2) ===
    sudo shred /desuzfs/media/desu/k/image/0000/00/0000000000.jpg
    sudo shred /desuzfs/media/desu/k/thumb/0000/00/0000000000s.jpg # note the s, and thumbs are always jpg
    sudo rm /desuzfs/media/desu/k/thumb/0000/00/0000000000s.jpg
(Files on the frontend server are located in /srv/foolfuuka/boards/)
(Purge CloudFlare Cache)
  curl -X DELETE \
    https://api.cloudflare.com/client/v4/zones/YOUR_API_KEY_HERE/purge_cache \
    -H 'cache-control: no-cache' \
    -H 'X-Auth-Email: YOUR_AUTH_EMAIL_HERE' \
    -H 'X-Auth-Key: YOUR_KEY_HERE'\
    -H 'content-type: application/json' \
    --data '{"files":["https://yourdomain.org/k/thumb/0000/00/0000000000s.jpg"]}'
Finally, use automatic purge to clear CloudFlare Cache
and there is 24 hours to do this
NEVER CLICK THE IMAGE URL. be very careful of posting it also
only share it in the following form: k/thumb/0000/00/0000000000s.jpg
=== Frontend Sync Banned Images from FoolFuuka ===
There’s a script nas-rem-img.php that lives on the dumper /var/www/foolfuuka
* Login to CDN2.
* Run {{ic|php /home/atc/test.php}}
* This will delete banned files from the NAS
This is cron’d to run daily.
=== Automatic Procedure ===
We have a purge.php that not only deletes both thumb and image, but also purges the cloudflare cache.
* Adding users to purge script: sudo htpasswd /etc/nginx/ssl/htpasswd <username>
Please note that all contributions to Bibliotheca Anonoma are considered to be released under the Creative Commons Attribution-ShareAlike (see Bibliotheca Anonoma:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)

Template used on this page: