keepthatworktoyourself / wombat

Not another website builder. Public repo — raise issues, request features, get help.
2 stars 0 forks source link

Domain management #53

Closed bhallstein closed 2 years ago

bhallstein commented 2 years ago

When setting up a wombat site, the user will get started immediately on a subdomain x.get-wombat.com.

To put their site live, they will add 1 or more domains. How that can work:

(Additionally, they should probably be able to no-index their subdomain. Suggest add as a sep issue.)

Wombat will need to guide them through this process. While there is no main domain for a site, suggest we put an always-on mini-banner on the site (or app) that says "Set up your domain" or similar (this is what I put prospectively on the SiteSetupPage in https://github.com/keepthatworktoyourself/wombat/issues/28).

Then we will need a site settings section or subpane that allows adding and removing domains, and displays A record setup instructions. And maybe links to recommended registrars such as Hover and Porkbun.

Other

Domain routing is already functional on the back-end, though will probably need some new API functions to add and remove domains, preventing dupes, etc.

Domain ownership

When a domain is pointed at wombat with A records, it will typically be the first user who adds the domain to a site who claims ownership of it. This can potentially lead to someone taking ownership of a domain that does not belong to them. In the future, suggest adding domain verification using txt field or similar.

bhallstein commented 2 years ago

@pjrundle Initial PR raised. I've done a sketchy initial front-end UI, would you like to take a look at it?

Screenshot 2022-06-14 at 12 56 56

Probable features for the future of this list, these are currently unsupported so not mentioned to include these in any UI work but in case helpful to have them at the back of your mind:

NB

Wombat will need to guide them through this process. While there is no main domain for a site, suggest we put an always-on mini-banner on the site (or app) that says "Set up your domain" or similar (this is what I put prospectively on the SiteSetupPage in https://github.com/keepthatworktoyourself/wombat/issues/28).

I haven't done this. Perhaps can add to Wombat 0.5, what do you think?

bhallstein commented 2 years ago

Thinking about it, this pane should probably have a little info section at the top that says something like this:

To set up your domain, log into your domain registrar and create the following A records:

your-domain.com  85.159.210.202