Options for site-wide broadcasts in Gitea?

I need a way to notify users of planned outages and important announcements. Given the current stable release of gitea, what would be the best way to go about this?

Google search shows https://github.com/go-gitea/gitea/issues/2345, but that feature hasn’t been implemented yet.

There is always adding javascript in the header template that tries to fetch a message from some resource in custom/public on each load. The problem with this approach is that it doesn’t degrade gracefully for users without javascript support. Adding the message directly to the header template won’t work because gitea seems to only load the templates once when it starts up.

Have I missed something or is a custom js broadcast system the only way to do this with current versions of gitea?

(Sorry for the many questions I’ve posted here the past few days and thank you for reading so far. Cheers!)

Instead of injecting JS into the template, you could just add HTML into the template. https://codeberg.org/ does this.

Hi @techknowlogick. I tried adding HTML directly into a custom template. I found the problem with this approach is that gitea wont load the edited templates unless it is restarted. I haven’t managed to find a way to nudge gitea to reload template files. (https://docs.gitea.io/en-us/command-line/ doesn’t seem to list anything relavent.)

Of course, I could be missing something obscenely obvious, but to my limited knowledge, having to stop gitea to broadcast notices (possibly about stopping gitea) runs counter to what I want to do. If I’m missing something, please fill me in.

Also, thank you for attempting to help. It’s very much appreciated!