Stop redirecting the apex to the repo
The apex is getting its own content, so it cannot be spent forwarding to /fdroid/repo/. The short, typeable way in is a separate name that redirects here -- fdroid.randogoth.com, defined in bucur's modules/services/fdroid.nix. Until that content lands, / falls through to the existing 404, which is deliberate. repo/index.html is unaffected and still the repo's landing page at /fdroid/repo/, the address the signed index names and the one clients subscribe to. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
59038f9f35
commit
b9154b9728
1 changed files with 9 additions and 5 deletions
14
module.nix
14
module.nix
|
|
@ -137,11 +137,15 @@ let
|
||||||
file_server
|
file_server
|
||||||
}
|
}
|
||||||
|
|
||||||
# `fdroid update` writes repo/index.html: the repo's own landing
|
# No redirect from /. The apex is being given its own content, so it
|
||||||
# page, listing every app and carrying the QR code that adds the
|
# cannot be spent forwarding to the repo; the short, typeable way in
|
||||||
# repo to a phone. Better than anything hand-written here, and it
|
# is a separate name that redirects here (fdroid.randogoth.com, in
|
||||||
# can never fall out of step with the index.
|
# bucur's modules/services/fdroid.nix). Until that content lands the
|
||||||
redir / /fdroid/repo/ permanent
|
# apex falls through to the 404 below, which is deliberate.
|
||||||
|
#
|
||||||
|
# repo/index.html, which `fdroid update` writes, is still the repo's
|
||||||
|
# landing page and still reachable at /fdroid/repo/ -- the address the
|
||||||
|
# signed index names and the one clients subscribe to.
|
||||||
|
|
||||||
# Caddy answers a request that matched no route with an empty 200, so
|
# Caddy answers a request that matched no route with an empty 200, so
|
||||||
# without this every stray path — /config.yml included — looks like a
|
# without this every stray path — /config.yml included — looks like a
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue