Define custom well-known entries via CloudronManifest.json
-
The apex-domain limitation for the ESS package could be solved cleanly with a small platform feature: let an app declare custom
well-knownentries for its parent/apex domain — either in CloudronManifest.json or via an API the app can call — so Cloudron's nginx serves e.g. https://example.com/.well-known/matrix/{server,client} and /.well-known/element/element.json on the app's behalf, without the app claiming the whole apex as an alias.Cloudron already serves some well-known content per domain, but there's no way to set the arbitrary JSON that Matrix needs today (e.g. the org.matrix.msc4143.rtc_foci transport entry that Element Call requires), and no way for a package to register it automatically. A wellKnown section in the manifest (updated on configure/restart) would benefit any protocol using apex-domain discovery — Matrix, WebFinger/Mastodon delegation, etc. Happy to write up a concrete proposal or beta-test an implementation with this package.
Is this the same as https://docs.cloudron.io/domains#matrix-server-location?
Almost the same, with two differences:
-
That feature only serves a fixed set of locations (
matrix/server,matrix/client,host-meta,caldav/carddav).element/element.jsonisn't in the whitelist, so adding it to the domain config today would still 404. If you're open to adding it there, or better, serving any configured location, that solves it. I actually have a small patch for the generic version ready (branchwellknown-generic-locationson https://git.due.ren/andreas/cloudron-box, incl. regression test) if you want an MR. -
The entries are static text the admin maintains by hand, while the correct values (e.g.
rtc_focifor Element Call, the MAS auth block) come from the app and change with its config. That's the angle of my feature request: letting an app declare/update these entries for its apex domain itself, so they can't go stale. The dashboard feature would stay as the manual override.
So: same mechanism, just asking for it to be un-whitelisted and optionally app-populated.
-
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login