Skip to content

Instantly share code, notes, and snippets.

View HirbodBehnam's full-sized avatar

Hirbod Behnam HirbodBehnam

View GitHub Profile
// A cloudflare worker that just proxies data from somewhere to you
// Credits to https://github.com/TheGreatAzizi/GitHub-High-Speed-Mirror
export default {
async fetch(request, env, ctx) {
// Parse the URL
const url = new URL(request.url);
const params = new URLSearchParams(url.search);
if (!params.has("url")) return new Response("Invalid URL", { status: 400 });
const target = params.get("url");
@HirbodBehnam
HirbodBehnam / matrix-ntfy.md
Created May 11, 2026 13:38
A short guide on how to setup local push notification service for a self-hosted matrix server.

Matrix Push Notification With ntfy

A short guide to teach you how to setup Matrix push notification service using ntfy in air gapped environment. This guide is divided by the programs you should run and configure. There is a assumption that you have already setup an synapse server.

ntfy

To setup ntfy, you need to create a configuration file named /etc/ntfy/server.yml and place this inside it:

base-url: "https://ntfy.example.com"