-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Reverse proxy with Caddy
weinuo821 edited this page Sep 17, 2022
·
3 revisions
- Caddy installed and running
- GitBucket running on some
PORT
(the default is 8080). For easier config use also the prefix--prefix=gitbucket
. - Know the
DOMAIN
you want GitBucket to be run on.
Add the following to your Caddy config file:
DOMAIN {
root /srv/site/www
gzip
log /var/logs/sites/access.log
proxy /gitbucket localhost:PORT {
transparent
}
}
Besides the extremely simple configuration, the main advantage of Caddy is the the automatic SSL certificate handling https://caddyserver.com/features .
To run Caddy as a systemd service, follow https://github.com/mholt/caddy/tree/master/dist/init/linux-systemd