Skip to content

[Feat] Hosted Domain Improvements#1121

Merged
RichardAnderson merged 5 commits into
vitodeploy:4.xfrom
RichardAnderson:feat/domain-fixes
May 25, 2026
Merged

[Feat] Hosted Domain Improvements#1121
RichardAnderson merged 5 commits into
vitodeploy:4.xfrom
RichardAnderson:feat/domain-fixes

Conversation

@RichardAnderson
Copy link
Copy Markdown
Member

@RichardAnderson RichardAnderson commented May 24, 2026

Resolves the issue with validation of the domain over proxy by introducing a new short-lived HTTP/HTTPS validation method through /.well-known/vito. Various other UI fixes / improvements around vhost generation.

CheckDomainJob asks VerifyHostedDomain to confirm a domain. The verifier writes a short HMAC challenge file (keyed by APP_KEY + site/server/domain/random ID) to /var/lib/vito/verify/{key}/{id} on the server, then HTTP-fetches http://{domain}/.well-known/vito/{key}/{id} — pinning each DNS-resolved IP via CURLOPT_RESOLVE — and checks the response body matches. The vhost serves that path from disk via a location block rendered whenever the site has a verification_key. If any IP returns the right body, the domain activates; otherwise it goes pending. Another Vito install can't fake it because they don't have your APP_KEY.

@saeedvaziry
Copy link
Copy Markdown
Member

Approved

@RichardAnderson RichardAnderson merged commit 8989385 into vitodeploy:4.x May 25, 2026
3 checks passed
@RichardAnderson RichardAnderson deleted the feat/domain-fixes branch May 25, 2026 09:29
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

Successfully merging this pull request may close these issues.

2 participants