Discourse Shortlink Router | Simplify support URLs

I thought I had promised to write a README earlier but I guess not. Regardless, I have published a simple guide on how to self-host or repurpose! The repo is still on GitHub but I’ll paste it below in case you don’t want to leave here for some reason

Instructions

Setup

Make sure you have a venv and Python 3.13 or later (only tested against 3.14 but 3.13 shouldn’t have problems; if you are having compiler errors just update python):

uv venv
source .venv/bin/activate
uv pip install .

Edit your configuration file optionally:

nano src/backend_config.jsonc

Most settings are self explanatory. web.hostname is simply for cosmetic purposes in the UI and does not impact functionality.

And that’s it! Get it up and running:

python3 -m src

You do not need to manually execute the uvicorn app, the Python module will execute it manually.

1 Like