Skip to content

A platform that pipelines web requests to WeChat/Telegram notifications.

License

Notifications You must be signed in to change notification settings

zhzy0077/pipehub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PipeHub

Build MIT Licensed

Get started

It's a service that pipelines web request to your WeChat Account.

Heroku no longer supports free dynos, so no more services.

Availability

According to our statistics, the overall availability during 6/18 and 7/2 is 99.67%.

The percentiles of latencies are:

  • Avg: 338ms
  • p50: 192ms
  • p80: 386ms
  • p90: 875ms

Use cases

  • Automate: Automate on Android can redirect short messages, FCM notifications to PipeHub. Try Notify me.flo under usecases folder.

Deploy your own server

  1. Prerequisites:
    • A PostgreSQL database.
    • A GitHub OAuth App.
  2. Prepare the dotenv file(replace the placeholders):
    pipehub_database_url=postgres://root:123456@localhost/pipehub
    pipehub_host=0.0.0.0
    pipehub_port=8080
    pipehub_domain=http://localhost:8080
    pipehub_https=false
    pipehub_log__level=INFO
    pipehub_github__client_id=${GITHUB.OAUTH_CLIENTID}
    pipehub_github__client_secret=${GITHUB.OAUTH_SECRET}
    pipehub_github__auth_url=https://github.com/login/oauth/authorize
    pipehub_github__token_url=https://github.com/login/oauth/access_token
    pipehub_github__callback_url=http://localhost:8080/callback
  • Use docker image:

    At this point, you need to login your github account before pulling a docker image as of docker pull from public GitHub Package Registry fail with “no basic auth credentials” error.

    docker login docker.pkg.github.com -u ${github name}
    docker pull docker.pkg.github.com/zhzy0077/pipehub/pipehub:latest
    docker run --env-file ${your dotenv file} -d docker.pkg.github.com/zhzy0077/pipehub/pipehub:latest
  • Build from sratch:

    # Clone the repository.
    git clone https://github.com/zhzy0077/pipehub
    # Build the web.
    cd web && yarn && yarn build
    # Copy web assets.
    cd .. && cp -r web/static/* server/static/
    # Copy dotenv file.
    cp ${your dotenv file} server
    # Run the server.
    cd server && cargo run

Feedback

All kinds of feedback is welcomed. Just feel free to get in touch with me by creating an issue or emailing zhzy0077@hotmail.com.

License

This project is open-sourced under MIT license.

About

A platform that pipelines web requests to WeChat/Telegram notifications.

Resources

License

Stars

Watchers

Forks

Packages