dependabot[bot] b2637fcddb Bump github.com/charmbracelet/lipgloss from 0.12.1 to 0.13.0
Bumps [github.com/charmbracelet/lipgloss](https://github.com/charmbracelet/lipgloss) from 0.12.1 to 0.13.0.
- [Release notes](https://github.com/charmbracelet/lipgloss/releases)
- [Changelog](https://github.com/charmbracelet/lipgloss/blob/master/.goreleaser.yml)
- [Commits](https://github.com/charmbracelet/lipgloss/compare/v0.12.1...v0.13.0)

---
updated-dependencies:
- dependency-name: github.com/charmbracelet/lipgloss
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-21 10:11:25 +00:00
2024-05-07 14:20:54 -04:00
2024-07-12 20:59:54 -04:00
2024-05-07 14:14:28 -04:00
2024-04-23 08:52:59 -04:00
2024-07-12 20:59:54 -04:00
2024-04-23 08:55:22 -04:00
2024-05-17 09:00:34 -04:00
2024-04-23 16:29:15 -04:00
2024-07-12 20:59:54 -04:00
2024-07-09 10:20:06 -04:00

img-proxy url generator

host an instance of img-proxy

img proxy docs

build

you can optionally hard code a path prefix when building

go build --ldflags="-X 'github.com/siteworxpro/img-proxy-url-generator/generator.PathPrefix=s3://mybucket'"

config file

params

[img-proxy]

  • key sha256 hmac key
  • salt sha256 hmac salt
  • host img-proxy server hostname
  • encryption-key aes encryption key
  • plain-url bypasses all encoding and uses plain filename

example config file

[img-proxy]
key=2c...47
salt=27...27
host=https://i.fooo.com
encryption-key=1c...0b
plain-url=1

usage examples

generate a plain url with an insecure signature

[img-proxy]
host=https://i.fooo.com
plain-url=1
./imgproxy --image "local:///my-super-image.png"

https://i.fooo.com/insecure/raw:1/plain/local:///my-super-image.png

generate a plain url with a signature

[img-proxy]
host=https://i.fooo.com
key=23...a4
salt=3f...4a
plain-url=1
./imgproxy --image "local:///my-super-image.png"

https://i.fooo.com/g0ociV0BWaK8JPXtkNsGxdK8IFHbVYczrcmiiv5T9pk/raw:1/plain/local://my-super-image.png

generate a hmac url with a signature

[img-proxy]
host=https://i.fooo.com
key=23...a4
salt=3f...4a
./imgproxy --image "local:///my-super-image.png"

https://i.fooo.com/NIColt6GBjtbquJXAtEMMsptARPw0CdeduEcu-S9Voc/raw:1/bG9jYWw6Ly9teS1zdXBlci1pbWFnZS5wbmc

generate an encrypted url with a signature

[img-proxy]
host=https://i.fooo.com
key=23...a4
salt=3f...4a
encryption-key=1c...0b
./imgproxy --image "local:///my-super-image.png"

https://i.fooo.com/m3YtaMSgL86qCnfKCnS2i9_vLRmJSogdBx1o86cWbuc/raw:1/enc/F6FAWktv2SAFe5UQwMme0pB6JwKQJVtTI_6Xx-PUfKANdQk0pD1I13NPnv0CvkFT

generate with params

./imgproxy --image "local:///my-super-image.png" -p h:200 -p rot:90

https://i.fooo.com/q-CfgLiuHTXDiZg7vBsUbZB3nkhzfsPgNrK0x20b878/h:200/rot:90/sm:1/enc/DrSKPtr8JkWx_Bf-vuxDTXRXfhrkZKTlPoQE61BzMfG2Mj1mD0qnthPq_Sfk8giv

generate a url with a specified format

./imgproxy --image "local:///my-super-image.png" --format bmp -p h:200

https://i.fooo.com/UMkz4OUNw6P9ShLdewuvW3ValMgCt263vZzU5gN57WQ/h:200/sm:1/enc/ECYxMeVBTjRxB7F-jdQ7W_-Fnv4YbmSJIKie-Hdtxd9vsmEKjU1YuWVSzdN97Mod.bmp
Description
No description provided
Readme Apache-2.0 779 KiB
v1.5.1 Latest
2025-05-20 22:35:19 +00:00
Languages
Go 97.7%
Shell 1.3%
Dockerfile 1%