Replies: 3 comments 1 reply
-
See outstanding issue: #1160 |
Beta Was this translation helpful? Give feedback.
-
Custom domains comes with one caveat for self-hosters: It is not possible to know the custom domains beforehand, which comes with implications for certificate generation.
One way that seems possible is to allow custom sub-domains of a preconfigured outline subdomain. E.g.:
When using a subdomain wildcard domain, it is possible to generate wildcard certificates, by using the DNS-01 challenge. Alternatively the GitLab Pages path could be used as inspiration:
A custom subdomain under a specified domain with using a wildcard together with custom domains, incl. apex domains with on-the-fly certificates generated by a separate process, is possible with a separate SNI proxy, e.g. with Traefik on Docker: flowchart TD
Traffic -->|ALIAS pages.example.com| SNIproxy
SNIproxy{"`Traefik TCP, **IP 1**`"} -->|HostSNI pages.example.com *.pages.example.com| HTTPSproxy("`Traefik HTTPS, **IP 2**`")
HTTPSproxy -->|HostRegexp pages.example.com *.pages.example.com| Pages("`**Outline Pages daemon**
(1) serves autogenerated routes on *.pages.example.com
(2) after validation serves custom domains and custom certificates on`")
SNIproxy -->|HostSNI *| Pages
I'd suggest to set up a GitLab Pages site with a custom domain to test their flow and what people might be expecting from such a feature. Moved from #1160 (comment) |
Beta Was this translation helpful? Give feedback.
-
Another interesting implementation that allows to implement this use case is using Caddy with its on demand TLS provisioning, eventually dependant on an
This could be a little boolean web service, endpoint or worker function, which acts on existing state, leaving the validation procedure decoupled. |
Beta Was this translation helpful? Give feedback.
-
Hi everyone
We did start using outline primarily to write internal technical documentation.
We're now thinking about writing project/product documentation in outline as well.
Especially for product documentation we'd love to be able to share a whole collection publicly.
Further more it would be amazing if we share a collection publicly to have the possibility to add custom domains per collection.
For example:
Outline instance: https://outline.mydomain.org
Collections:
I think this would be a unique and very handy feature. What do you think about it?
Beta Was this translation helpful? Give feedback.
All reactions