Lemmy 0.19.11 (which I’ve just upgraded AZ to) has a new feature to allow regular federation, but require users be logged in to view content.

I’d like to gauge feedback from users on this. It will not add privacy, or limit the propagation of posts/comments etc. But it will limit AZ server resource consumption by bots or users that are not logged in.

Thoughts/concerns on enabling this feature?

Update: thank you all for your thoughts and feedback on this. We’ll leave AZ as it is, though may use this feature in future if we need to mitigate attacks or other malicious traffic.

  • 𝚝𝚛𝚔
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    25 days ago

    Is it possible to automate? I looked at the Lamington docs briefly and it looked like it uses a file to store config. Thought if the config file was a symlink it would make it easy to change config to be private / be public.

    Like this every 30 minutes or whatever. Obviously will require a bit more logic rather than constantly recreating symlinks… but yeah.

    #!/bin/bash
    
    THRESHOLD=1.5
    
    CMD_HIGH="ln -sfn /blah/blah/config.json /blah/blah/config.json.private && systemctl restart lamington"
    CMD_LOW="ln -sfn /blah/blah/config.json /blah/blah/config.json.public && systemctl restart lamington"
    
    LOAD_15MIN=$(uptime | awk -F'[a-z]:' '{print $2}' | awk -F', ' '{print $3}' | tr -d ' ')
    
    if (( $(echo "$LOAD_15MIN > $THRESHOLD" | bc -l) )); then
        echo "[$(date)] High Load Detected - Current: $LOAD_15MIN, Threshold: $THRESHOLD"
        echo "[$(date)] Taking Lamington private........ "
        eval "$CMD_HIGH"
    else
        echo "[$(date)] Normal Load Detected - Current: $LOAD_15MIN, Threshold: $THRESHOLD"
        echo "[$(date)] Returning Lamington to public... "
        eval "$CMD_LOW"
    fi