Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom domain names #25

Closed
benallfree opened this issue Oct 24, 2022 · 3 comments
Closed

Custom domain names #25

benallfree opened this issue Oct 24, 2022 · 3 comments
Milestone

Comments

@benallfree
Copy link
Collaborator

benallfree commented Oct 24, 2022

Allow custom domains

Frontend:

  • Add cname to instances
  • cname must be blank or globally unique
  • cname must be a valid domain name (https://www.regextester.com/106386)
  • create instructions that cname must resolve to <uuid>.pockethost.io along with a button to test manually
  • A cname_status flag: verifying, ssl, active, and failed
  • A cname_reason field capturing the latest failure message

Daemon updates:

  • For all instances with verifying status, do a cname check to make sure it links to the correct subdomain. If it doesn't, set to failed with a cname_reason
  • CERTBOT - set to ssl and issue new SSL cert and update nginx & refresh, or set to failed with a reason
  • Once cname and certbot are done, set status to active
  • Periodically check (cname_checked_at) to re-verify that cname resolves properly - every 5 minutes? update status and reason if failure
  • Periodically renew certbot (every 90 days) (certbot_renewed_at), updating status and reason if failure
This was referenced Oct 26, 2022
@benallfree
Copy link
Collaborator Author

Probably we should do this along with #42

@benallfree benallfree added this to the 0.6 milestone Nov 3, 2022
@benallfree benallfree modified the milestones: 0.6, 0.7, 0.8 Dec 12, 2022
@benallfree
Copy link
Collaborator Author

moved to roadmap

@benallfree
Copy link
Collaborator Author

Cloudflare supports custom hostnames https://developers.cloudflare.com/cloudflare-for-platforms/cloudflare-for-saas/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant