httpd: serve apple-app-site-association !544

merged merged by cmc on 2026-09-30 02:15 UTC · krz/gitbay:aasa into main

Discussion

cmc

Serves /.well-known/apple-app-site-association as application/json when [web] apple_app_ids is set, for iOS universal links (krz/gitbay-ios#20). Empty, the default, leaves the route unregistered and the path a 404.

Components: web-only pages excluded first (settings, admin, login/register, api, static, .well-known, feeds, forms, raw/archive/release downloads, range-diff, compare ranges, wiki _raw), then the repository sections the app routes, then any other path of three or more segments excluded, then owner and repository. TestAppleAppSiteAssociationCoversEveryRoute walks the GET route table so a new route must be classified.

After deploy, bay1's /etc/gitbay/config.toml needs:

[web]
apple_app_ids = ["ZCNAX3VL9D.org.gitbay.gitbay"]

Closes #310