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
systemdunit file for it/etc/systemd/system/pirsch.service(see below) - use
systemctl enable pirsch.serviceto 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 caddyto install Caddy - adjust the configuration to your needs
/etc/caddy/Caddyfile(see below) - use
systemctl enable caddy.serviceto 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.