dansup , to random
@dansup@mastodon.social avatar

Just shipped a new mini side-project for Pixelfed + Laravel Forge + Cloudflare.

This tool enhances your @pixelfed server security by automatically updating your server's firewall to allow only Cloudflare IP ranges, effectively blocking unauthorized requests.

This can ensure that only legitimate traffic reaches your server, reducing the risk of attacks and unauthorized access.

Simply add 2 env vars and setup the scheduler, and it will auto-update 😎

Source: https://github.com/dansup/forge-cf-ips-autoupdate

burnskp , to random
@burnskp@hachyderm.io avatar

Hi Everyone! I'm one of those people whose hobby and work revolves around tech. I'm a Mac user who focuses on , and I drank the kool-aid 10 years ago, and while it looks different now I'm still a believer!

I'm also a bit of an and enjoy live music, although I don't go to concerts that often anymore. I used to play guitar, but my thumbs started giving me issues so I recently switched to the drums.

mischa , to random
@mischa@exquisite.social avatar

The final stretch for the EuroBSDCon 2024 CfP!

Dublin, Ireland September 19-22, 2024
https://2024.eurobsdcon.org/

Call for Papers runs until June 15, 2024
https://2024.eurobsdcon.org/cfp/index.html

Submit at https://events.eurobsdcon.org/

kuba , to random
@kuba@toot.kuba-orlik.name avatar

A question: is there a way to set up a "rolling cache" with nginx?

I want it to handle each request like so:

  1. Immediately respond with the cached version
  2. Start rebuilding the cache for that request in the background, so the next request for this URI gets a newer cached version

Cc @rysiek

anderseknert , to random
@anderseknert@hachyderm.io avatar

New blog post on “Advanced Rego Testing Techniques” by Nicholaos Mouzourakis from Gusto. Deep technical content. Love it!

https://www.styra.com/blog/advanced-rego-testing-techniques/

stefano , to random
@stefano@bsd.cafe avatar
stw , to random
@stw@chaos.social avatar

Shell scripts are the duct tape that holds together while environment variables are its WD40

skinnylatte , to random
@skinnylatte@hachyderm.io avatar
claudius , to random German
@claudius@darmstadt.social avatar

WTF ich hab gerade im ersten Versuch eine korrekte .gitlab-ci.yml produziert. Und zwar aus drei Anleitungen zusammen frankensteint. Hat einfach funktioniert.

devnull , to random
@devnull@crag.social avatar

On multiple occasions I've listened to instance admins speak about high S3 costs. The sheer amount of data absolutely balloons the more activity your server sees, I get it.

What I don't get is whether there's some unknown fedi ethical reason everybody insists on setting up an S3 cache (followed immediately by complaining about it).

Y'all want to know what the rest of the web does? Hosts their own uploaded media, and links out to the rest...

thepracticaldev , to random
@thepracticaldev@fosstodon.org avatar

Bash is a terrible programming language, but what's the alternative ?

What's your favorite non-Bash language for your scripts?


https://dev.to/jmfayard/bash-is-a-terrible-programming-language-but-whats-the-alternative--oc2

meuon ,
@meuon@fosstodon.org avatar

@thepracticaldev Perl.

Bash is a SHELL and isn't necessarily a programming language but can be pretty good. PERL was essentially created for system admin / automation and reporting. It is awesome at parsing log files and other sources, hence the nickname: Perfectly Eclectic Rubbish Lister

And don't laugh, but I do a lot of scripting (non web) work in PHP as well.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • test
  • worldmews
  • mews
  • All magazines