jgm / jgm/gitit

Static files should be served respecting the base-url

Open
#624 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
2.3k
Forks
231
PR merge metrics
No merged PRs in 30d

Description

Let's say I proxy my wiki using nginx to `/wiki/`. The serving of static files and such will break with this. Currently, the documentation appears to insist one should use Apache2 with some HTML rewriting module instead, or simply set up a subdomain for the wiki. This seems suboptimal.

A configuration option called `base-url` already exists. If gitit were to use the base-url as a base for static files and links, no fragile/expensive HTML rewriting would be needed, as gitit itself could just return the canonical URL we'd like to have it served at.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.