How to self-host Plausible analytics (with Docker, nginx and SSL)

Code With Bubb
Code With Bubb
3.2 هزار بار بازدید - 2 سال پیش - In this tutorial i'll show
In this tutorial i'll show you how you can self-host the Plausible analytics software for free and also how to secure it with an nginx reverse proxy and SSL certificate from Let's Encrypt Read the article here: codebubb.com/posts/self-hosting-plausible-analytic… Update: Make sure to add an X-Forwarded-For header in your nginx config to ensure Geolocation works properly (update in article above): location / { proxy_pass http://plausible:8000; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } This was the video where we setup a new Digital Ocean server running Docker and bought a domain and pointed it at the server:    • How to point a NameCheap Domain to a ...   Get $200 free Digital Ocean credit using this link! www.juniordevelopercentral.com/digitalocean 00:00 Intro 00:15 What is Plausible 01:01 What you'll need 01:22 Getting Plausible up and running 04:34 Setting up an nginx reverse proxy 10:26 Getting an SSL certificate with Let's Encrypt 13:33 Configure nginx for secure connections 15:03 Creating an account in Plausible 15:45 Adding analytics to a site 17:16 Disabling new user registration So I wanted to setup Plausible for a few projects i'm working on and self-hosting seems like a great option. There are some pretty solid instructions for getting it up and running on your own server but I struggled with getting a secure connection setup with the methods they suggest/provide. I ended up updating the docker-compose they provide with nginx and certbot so that I could setup a reverse proxy to make sure the connection to Plausible is secure. Also this felt like a good opportunity to beef up my Docker knowledge and skills so I hope you'll learn something too about working with Docker containers. #plausible #docker #nginx
2 سال پیش در تاریخ 1401/12/24 منتشر شده است.
3,249 بـار بازدید شده
... بیشتر