You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Serve private docs on hyphenated org subdomains (#121)
Org names allow underscores, but RFC 1123 hostname labels and Fastly's
strict SAN matching don't, so map `_` -> `-` for `*.hexorgs.pm`
subdomains, mirroring the public package side. The hexorgs.pm path is
served by this app rather than Fastly, so the reverse `-` -> `_` mapping
and the 301 from the old underscore host both live in the plug.
- Utils: add name_to_subdomain/1 and subdomain_to_name/1 (replacing
package_to_subdomain/1); hexdocs_url/3 now hyphenates the org subdomain.
- Plug: 301-redirect underscore hosts to the hyphenated host (preserving
path and query); reverse-map the subdomain to the org name for the
OAuth scope, key verification and bucket key; build the OAuth
redirect_uri with the hyphenated host.
0 commit comments