Static website hosting for Private.coffee Git repositories
CoffeeGit.page allows you to host static websites directly from your Private.coffee Git repositories. Each repository can be published to a subdomain of CoffeeGit.page or to your own custom domain.
By default, your repository will be available at
https://username.coffeegit.page/repository-name. The
content from the pages branch will be served by default.
You can configure your repository to be served from a custom domain or subdomain.
Add a .domains file to the root of your
pages branch. Each line in this file should contain a
domain you want to use:
example.com
www.example.com
blog.example.com
You need to set up either a CNAME record or a combination of A/AAAA
and TXT records with your DNS provider. The following examples show
how to use the
repository repository owned by the
username user as a target, using the default
pages branch. If you want to use a different branch,
simply use the
branch.repository.username.coffeegit.page syntax.
# For a subdomain like blog.example.com
Host: blog.example.com.
Type: CNAME
Value: repository.username.coffeegit.page.
# For an apex domain like example.com
Host: example.com.
Type: TXT
Value: repository.username.coffeegit.page.
Additionally, you'll need to set up A and AAAA records for apex domains:
Host: example.com.
Type: A
Value: 195.20.104.17
Host: example.com.
Type: AAAA
Value: 2a0c:b641:d10:117::1
Create a 404.html file in your repository to display a
custom error page when visitors try to access non-existent pages.
You can add a _headers file to your repository to define
custom HTTP headers for your site. It supports the core syntax used by
Netlify, but may not support all features.
/images/*
Cache-Control: public, max-age=31536000
/docs/*
X-Frame-Options: DENY
You can use static site generators like Hugo, Jekyll, or Eleventy.
Just make sure your repository's pages branch contains
the built static files in the root directory.
Changes may take a few minutes to appear. If your site isn't updating after pushing changes:
If your custom domain isn't working:
.domains file