nrw.social ist einer von vielen unabhängigen Mastodon-Servern, mit dem du dich im Fediverse beteiligen kannst.
Wir sind eine freundliche Mastodon Instanz aus Nordrhein-Westfalen. Ob NRW'ler oder NRW-Sympathifanten, jeder ist hier willkommen.

Serverstatistik:

2,9 Tsd.
aktive Profile

#itnotes

3 Beiträge3 Beteiligte0 Beiträge heute

I've just launched the version of my blog with a BSD-based theme. The main colors are inspired by the BSDs, and badges will appear if a post includes one (or more) BSD in its categories. I've applied a few fixes (there are more to come), but it's already fully usable.
The site is designed to be navigable even without images or JavaScript, and can be used with text-based browsers. The only feature that requires JavaScript is the search function, which runs locally in the user's browser for maximum security and privacy.

For those who have already visited the site in recent days, you might not see the new theme correctly as some CSS parts could still be cached in your browser. I’ve set long expiration times for the CSS, so browsers may not notice the changes right away.

it-notes.dragas.net

IT NotesIT NotesScattered IT Notes - by Stefano Marinelli
#RunBSD#FreeBSD#NetBSD
Antwortete IT Notes
@itnotes@snac.it-notes.dragas.net

Interesting you writing about this, I actually did this too, after adding the /s/ path, I modified my rule to:
^/[^/]/[xs]/
For posted Media and remote cached together, , but I've seen snac adds the "no-cache" ,and related header content, and my caching for /x/ was ignored. Then I wondered if there is security problematic content stored, for snac using these headers. I see you overwrite it with "ignore header"

#Data #Fediverse #Hosting #ITNotes #Networking #Nginx #NoteHUB #Ownyourdata #Server #Snac #Snac2 #Social #Tipsandtricks #Tutorial
#data#fediverse#hosting
After seeing
Improving snac Performance with Nginx Proxy Cache from @itnotes@snac.it-notes.dragas.net via
https://snac.it-notes.dragas.net/itnotes/p/1738139676.258050
https://it-notes.dragas.net/2025/01/29/improving-snac-performance-with-nginx-proxy-cache/
I decided to prematurely optimize and adjust this for my apache2 httpd server in debian where I run snac.

I've never done any caching etc before so it was a nice adventure to learn something new. The documentation helped and in the end it wasn't very hard. I learned a bit about some http headers and regex on the way too.

Basically it works like this:
Enable the relevant modules:

    a2enmod expires cache cache_disk
Be sure "htcacheclean" is running to clean up old disk cache. (under debian see /etc/default/apache-htcacheclean or else the relevant systemd service)
Then add to the snac virtualhost config:

    CacheRoot /var/cache/apache2/mod_cache_disk
CacheQuickHandler off
CacheLock on
#Optional while testing stuff;
CacheDetailHeader on

#My Instance ist not at the root, but under "/social"; so this needs to be adapted:
<LocationMatch "^/social/[^/]+/s">
CacheEnable disk
ExpiresActive On
ExpiresDefault "access plus 30 days"
</LocationMatch>
This will use the disk cache to cache everything under the /s/ Path, same as the original ngnix tutorial, Utilizing the mod_expires to generate the appropriate cache headers (for lazy ones like me), In this case caching it for 30 days.
Further reading and all options explained under https://httpd.apache.org/docs/2.4/caching.html ff

Thanks for the initial tutorial @itnotes@snac.it-notes.dragas.net

#Fediverse #Hosting #ITNotes #Networking #apache2 #httpd #Ownyourdata #Server #Snac #Snac2 #Social #Tipsandtricks #Tutorial #Web #Debian
snac.it-notes.dragas.netIT Notes (@itnotes@snac.it-notes.dragas.net)2 following, 85 followers · **Improving snac Performance with Nginx Proxy Cache** https://it-notes.dragas.net/2025/01/29/improving-snac-performance-with-nginx-proxy-cache/ #Data #Fediverse #Freebsd #Hosting #ITNotes #Networking #Nginx #NoteHUB #Ownyourdata #Server #Snac #Snac2 #Social #Tipsandtricks #Tutorial #Web