microhive.social is a Fediverse instance that uses the ActivityPub protocol. In other words, users at this host can communicate with people that use software like Mastodon, Pleroma, Friendica, etc. all around the world.

This server runs the snac software and there is no automatic sign-up process.

Site description
As you have probably already guessed: this is just another personal fediverse instance.
Admin account
@oliver@microhive.social

Search results for tag #tutorial

Menel »
@menel@snikket.de

Updated Version of the apache http caching setup for snac, including proxy media

I already wrote about caching here
Now I extended what I cache a bit.
This was because after enabling Option to proxy media I've seen access to the file paths /x/ and /y/ in addition to the path were snac stores the media that I include in my own posts ( /s/ ).
There are two locations to proxy media, depending if you requests the media via the mastodonapi or via the web. (/x/ and /y/), oh and I added the nodeinfo2 path too, because I've noticed it was queried all the time by a lot of instances and it gives me pleasure to see something cached handed out in the access logs 🙂 (I guess it is actaully irrelevant for the system resources).
This is the updated setup:
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 or whatever)
Then add to the snac Virtualhost config:

<LocationMatch "^/social/[^/]+/[xys]/|^/social/nodeinfo_2_0">
CacheEnable disk
Header set Cache-Control "max-age=86400, public" "expr=%{REQUEST_STATUS} == 200"
ExpiresActive On
ExpiresDefault "access plus 86400 seconds"
</LocationMatch>
This will use the disk cache to cache everything under the /s/, /x/ and /y/ Path, as well as for /$username/nodeinfo20, utilizing the mod_expires to generate the appropriate cache headers (for lazy ones like me), In this case caching it for 1 day.
Further reading and all options explained under https://httpd.apache.org/docs/2.4/caching.html (and ff)

The Header that I set here, on the condition of Status code 200, is needed for the path /y/, because snac defaults to set no-cache on that location and the modexpires will honor that if we don't override it. I set it to the same Cache-Control value as modexpores woud. (mod_expires will additionally calculate the date and put that in the expiresheader. (hence the name I guess 😀 )


:xmpp:

    Oliver⚡ boosted

    Giacomo Tesio »
    @giacomo@snac.tesio.it

    WEtell.Mobilfunk »
    @wetell@digitalcourage.social

    DIY mit Herz und Holz!💛 Heute zeigen wir dir, wie du aus Holzperlen eine individuelle Handykette zum Umhängen zaubern kannst – nachhaltig, praktisch und richtig stylisch. 📲 Viel Spaß beim Basteln! ✂️

      6 ★ 1 ↺
      Sport Feed boosted

      Oliver⚡ »
      @oliver@microhive.social

      Vor einigen Tagen kam hier das Thema "korrekte" Sandalen-Schnürung auf. Meine Erfahrungen teile ich matürlich sehr gern mit euch.
      Die Sandalen lassen sich mit wenigen Handgriffen perfekt einstellen, da ich gerne eher schnell laufe, "knalle" ich die Riemen immer sehr fest, empfehle das aber auch für gemächliches Tempo. Scheuerstellen und Blasen möchte niemand haben 🙂

      So mache ich das:
      Youtube: https://www.youtube.com/watch?v=HeIRwzg-zRU

      Peertube: https://tube.tchncs.de/w/uqy4XpGmJ1FsDCQ3qtB4Qq