This commit is contained in:
Joshua Seigler 2025-06-16 15:37:34 -04:00
parent 131872f476
commit 1d0f8086e0

View file

@ -1,7 +1,7 @@
---
title: My Very Own GitHub Pages
slug: my-very-own-github-pages
description: How to self-host Forgejo and automatically serve your web build branches with SSL
description: How to self-host Forgejo and automatically serve your web build branches with SSL.
---
I recently started self-hosting [Forgejo](https://forgejo.org/), but I wanted something to replace GitHub pages, which has been very convenient for publishing little website projects. My server runs Debian, so I decided to use [webhook](https://github.com/adnanh/webhook) and [Caddy](https://caddyserver.com/). I'm very happy how it turned out.
@ -23,7 +23,7 @@ In case you don't have a basic server setup routine yet, this is a good start:
### Caddy
I usually use nginx, but I wanted to give Caddy a shot, and it has been a great experience. I installed Caddy using the [official instructions](https://caddyserver.com/docs/install).
Here is the Caddyfile I made---you will need to change the domains names and the email. Email could be removed, but it is recommended so SSL certificate issuers can contact you if there is a problem with your certificates.
Here is the Caddyfile I made---you will need to change the domain names and the email. Email could be removed, but it is there so that SSL certificate issuers can contact you if there is a problem with your certificates.
`/etc/caddy/Caddyfile`
```caddy