Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/schwindelig/posthog-docker-caddy-reverse-proxy
Docker image for a Posthog reverse proxy using Caddy. Works on Azure App Services
https://github.com/schwindelig/posthog-docker-caddy-reverse-proxy
Last synced: about 2 months ago
JSON representation
Docker image for a Posthog reverse proxy using Caddy. Works on Azure App Services
- Host: GitHub
- URL: https://github.com/schwindelig/posthog-docker-caddy-reverse-proxy
- Owner: schwindelig
- Created: 2023-02-24T11:36:57.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-26T05:04:18.000Z (10 months ago)
- Last Synced: 2024-02-26T06:23:45.442Z (10 months ago)
- Language: Dockerfile
- Homepage:
- Size: 2.93 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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`
```powershell
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