https://github.com/rx14/camo.cr
A crystal version of atmos/camo, faster and with better request lifecycle tracing
https://github.com/rx14/camo.cr
camo-proxy crystal daemon images proxy ssl
Last synced: 10 months ago
JSON representation
A crystal version of atmos/camo, faster and with better request lifecycle tracing
- Host: GitHub
- URL: https://github.com/rx14/camo.cr
- Owner: RX14
- License: mit
- Created: 2017-02-05T00:40:26.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2021-05-18T17:17:16.000Z (almost 5 years ago)
- Last Synced: 2025-05-13T01:12:49.248Z (10 months ago)
- Topics: camo-proxy, crystal, daemon, images, proxy, ssl
- Language: Crystal
- Homepage:
- Size: 59.6 KB
- Stars: 38
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# camo.cr
A crystal version of [Camo](https://github.com/atmos/camo), faster and with better request lifecycle tracing. This is a drop-in replacement which mirrors original camo's configuration and behaviour as closely as possible.
Camo.cr proxies images with the intent of allowing insecure images to be used on sites with TLS without mixed-content warnings.
## Why?
The original nodejs camo code is fragile and hard to debug in production. As it's not a particularly long piece of code, I could write a replacement in a single day, with vastly better error handling and request tracing. Plus it's a fun challenge.
## Installation
Inside a checked-out version of this repo:
```
$ shards install
$ shards build --release
```
The resulting binary will be in `bin/camo`.
Alternatively, a docker container is available at [`rx14/camo.cr`](https://hub.docker.com/r/rx14/camo.cr/). This container is also a drop-in replacement for the `inventid/camo` docker container.
## Usage
See [atmos/camo's README](https://github.com/atmos/camo/blob/master/README.md).
## Development
After checking out the repo and running `shards install`, run specs using `crystal spec`.
## Contributing
1. Fork it ( https://github.com/RX14/camo.cr/fork )
2. Create your feature branch (`git checkout -b feature/foo`)
3. Commit your changes (`git gui`)
4. Push to the branch (`git push origin feature/foo`)
5. Create a new Pull Request
## Contributors
- [RX14](https://github.com/RX14) RX14 - creator, maintainer