https://github.com/segmentio/segment-proxy
Proxies requests to the Segment CDN and Tracking API.
https://github.com/segmentio/segment-proxy
Last synced: 4 months ago
JSON representation
Proxies requests to the Segment CDN and Tracking API.
- Host: GitHub
- URL: https://github.com/segmentio/segment-proxy
- Owner: segmentio
- License: mit
- Created: 2016-07-13T08:24:51.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-04-09T21:45:17.000Z (over 2 years ago)
- Last Synced: 2025-03-25T05:35:23.693Z (9 months ago)
- Language: Go
- Homepage: https://segment.com
- Size: 35.2 KB
- Stars: 54
- Watchers: 24
- Forks: 35
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# segment-proxy
Proxies requests to the Segment CDN and Tracking API. You can run this in your infrastructure (or use it as a reference implementation) and point your clients to use this proxy instead of `api.segment.io` or `cdn.segment.com` directly.
# CLI
```
Usage of proxy:
-debug
debug mode
-port string
bind address (default "8080")
```
# Usage
### Via Source
1. Clone the repo `git clone git@github.com:segmentio/segment-proxy.git`.
2. Run `make build server`.
### Via Golang
1. Run `go get github.com/segmentio/segment-proxy`.
2. Run `segment-proxy`.
### Via prebuilt binaries.
Download the latest binaries from [Github](https://github.com/segmentio/segment-proxy/releases).
### Via Docker
1. Run `docker run --publish 8080:8080 segment/proxy`.
# Library Instructions
* [iOS](https://segment.com/docs/connections/sources/catalog/libraries/mobile/ios/#proxy-https-calls)
* [Android](https://segment.com/docs/connections/sources/catalog/libraries/mobile/android/#proxying-http-calls)
* [Analytics.js](https://segment.com/docs/connections/sources/catalog/libraries/website/javascript/custom-proxy)