glitch-soc / mastodon

A glitchy but lovable microblogging server
https://glitch-soc.github.io/docs/
GNU Affero General Public License v3.0
689 stars 184 forks source link

Allow instance admins to set X-Clacks-Overhead in settings UI #2673

Open joyeusenoelle opened 5 months ago

joyeusenoelle commented 5 months ago

Pitch

It would be nice if we could allow instance admins to set the value of the X-Clacks-Overhead header, which records the names of users and friends who have passed on, through the web interface, and specifically through Preferences > Administration > Site Settings > Other. Currently, Glitch sets this in config/environments/production.rb, and (to the best of my knowledge) changing it requires having command-line access and a Mastodon rebuild; admins with sufficient access can also just add a different X-Clacks-Overhead header to the nginx config files, but that results in two headers being sent.

I'm not sure if this is possible, but after a few recent losses on the fediverse it's been on my mind.

Motivation

X-Clacks-Overhead is a way for us to remember friends and family we've lost, and to ensure that their names keep being spoken long after they're gone. I think it would be nice to make the process of memorializing those people more painless.

ShadowJonathan commented 5 months ago

Would an environment variable work? That would be an easy change