This guide will help you to set up a self-hosted proxy for Pirsch behind Caddy as a reverse proxy to schedule an SSL certificate. It assumes that you're using Ubuntu Linux or similar with systemd.
Make sure you adjust the paths if you modify things in the steps described here.
- download the latest release from https://github.com/pirsch-analytics/pirsch-go-proxy
- put it onto your server (for example in a new folder
/root/pirsch
) - adjust the configuration to your needs (see the readme in the repository, this guides assumes it will be running on
localhost:8080
) - add a
systemd
unit file for it/etc/systemd/system/pirsch.service
(see below) - use
systemctl enable pirsch.service
to enable the systemd service - start the service using
systemctl start pirsch.service
(you can check that it is running usingsystemctl status pirsch.service
)
- use
apt install caddy
to install Caddy - adjust the configuration to your needs
/etc/caddy/Caddyfile
(see below) - use
systemctl enable caddy.service
to enable the systemd service - start the service using
systemctl start caddy.service
(you can check that it is running usingsystemctl status caddy.service
)
And that's it! You can now start using the Pirsch JS snippet for your own domain. Please refer to the Usage section of the readme.