Host static websites on lunar.page
from public repositories on git.pub.solar
Create a public repository named pages to make the site available as a subdomain: USERNAME.lunar.page.
Note: Using dots
.in usernames, repository or branch names is not supported. Please use a dash-instead.
Create a branch pages in a public repository:
git switch --orphan pages
git rm --cached -r .
Push your static content, HTML, style, fonts, images or anything else.
Access your new website using this link:
https://USERNAME.lunar.page[/REPOSITORY][/@BRANCH]
To use a custom domain, create a file .domains with the domain name you wish to use and commit it to your repository.
echo 'bar.example.com' > .domains
For subdomains, add a DNS CNAME record for that domain:
NAME TYPE VALUE
--------------------------------------------------
bar.example.com. CNAME [[branch.]repo.]user.lunar.page.
For apex domains where CNAME does not work:
echo 'example.com' > .domains
NAME TYPE VALUE
--------------------------------------------------
example.com. ALIAS lunar.page.
example.com. TXT [[branch.]repo.]user.lunar.page
If ALIAS isn’t supported, use add the TXT record as described above, and use A + AAAA records as following:
NAME TYPE VALUE
--------------------------------------------------
example.com. A 85.215.152.22
example.com. AAAA 2a01:239:35d:f500::1
Hosted with ❤️ by pub.solar, with Codeberg Pages