Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/guoxiangke/redirectcloudflareworker
https://github.com/guoxiangke/redirectcloudflareworker
Last synced: 15 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/guoxiangke/redirectcloudflareworker
- Owner: guoxiangke
- Created: 2023-11-16T01:53:42.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-16T01:53:53.000Z (about 1 year ago)
- Last Synced: 2024-11-08T15:24:04.295Z (2 months ago)
- Language: TypeScript
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
```
npm install
npm run dev
``````
npm run deploy
```# redirect service and push influxdata of clicks
use Cloudflare Workers to redirect this link
> https://yourService.domain/?redirect=https://yourAudio.domain/ly/audio/2023/mw/mw231116.mp3?metric=LyAudio%26keyword=mw%26bot=1%26to=wxid_vi0twc8l12
to
> https://yourAudio.domain/ly/audio/2023/mw/mw231116.mp3?from=redirect
and then send to influxdata with those Line Protocol data:
> clicks,metric=LyAudio,keyword=mw,bot=1,to=wxid_vi0twc8l12 count=1i,target="mw231116.mp3",ip="undefined"
and save AWS Lambda $16.92 + Amazon API Gateway $7.39 per month.