Try out sharry. Sharry is a self-hosted file sharing web application.
It works pretty well for my use cases. I also like the alias feature, what is pretty much what you are searching for. The only thing I miss, is the possibility to download a share as a zip folder. But there is an open issue for it, so maybe it will be added in future (again).
You can have Pandoc and Git with Obsidian (https://obsidian.md/). Both as Plugins. Or even with VS Code. Obsidian sadly isn't open source.