crog v0.0.2

Crystal Opengraph proxy

Opengraph caching proxy

Fetches opengraph meta and translates it to JSON.

Installation

Docker

Requirements: docker-compose 2.24+

docker compose up -d

Using

curl localhost:8080 -d '{"uri": "telegram.org"}' && echo

http://localhost:8080/?{"uri":"telegram.org"}

Configuring

Mix in JSON object to response.

--mixin '{"contentType": "openGraph"}' or MIXIN variable in docker-compose

Default: {}

Use custom template for response. <data> is replaces with default og answer.

--template '{"meta":{"status":200,"errors":[],"pagination":[]},"data":<data>}' or TEMPLATE variable in docker-compose

Default: <data>

Contributing

  1. Fork it (https://github.com/uu/crog/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

Repository

crog

Owner
Statistic
  • 0
  • 0
  • 0
  • 0
  • 7
  • 7 months ago
  • March 28, 2024
License

MIT License

Links
Synced at

Sun, 17 Nov 2024 11:06:27 GMT

Languages