Skip to content

Docker image for a Posthog reverse proxy using Caddy. Works on Azure App Services

Notifications You must be signed in to change notification settings

schwindelig/posthog-docker-caddy-reverse-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Posthog Reverse Proxy

Provides a Docker image for hosting a reverse proxy to Posthog based on Caddy (alpine).

Based on the following documentation: https://posthog.com/docs/integrate/proxy

Getting it to run on Azure App Services

Note that this expects traffic from port 8080. In order to get this to work on Azure App Services, make sure to create a corresponding environment variable / Application Setting:

Name: WEBSITES_PORT

Value: 8080

Proxying to Posthog US

Caddy is configured to point to eu.posthog.com. If you have Posthog Cloud hosted in US, make sure to change the corresponding line within Caddyfile to app.posthog.com.

Usage

This will expose your container on localhost:8080

docker build -t posthog-proxy . && docker run -p 8080:8080 posthog-proxy

Pull directly from Docker Hub

For your convenience: https://hub.docker.com/r/schwindelig/posthog-docker-caddy-reverse-proxy

Note that this is for Posthog EU

About

Docker image for a Posthog reverse proxy using Caddy. Works on Azure App Services

Resources

Stars

Watchers

Forks

Packages

No packages published