Will Norris
4e97a7ea8f
make 'cached' a bool
2020-02-24 08:27:30 -08:00
Ben Haan
8484518c93
add basic prometheus support
...
Fixes #121
2020-02-24 08:27:30 -08:00
Will Norris
2eb6dfcd05
remove my personal config from example systemd file
2020-02-24 00:20:43 +00:00
Will Norris
8c28dca762
include referer header in remote requests
...
this is an optional feature which is disabled by default, since it is
only needed in a few select cases and risks accidentally exposing
internal URLs.
Fixes #216
2020-02-21 08:24:23 +00:00
Will Norris
edd9dbac2d
allow space-separated list of signature keys
...
This is necessary when specifying options as environment variables.
Also add documentation for using multiple signature keys.
2020-02-02 18:45:39 +00:00
Will Norris
dec2089f0b
docker: use latest go1.13.x
2020-02-02 18:27:02 +00:00
Will Norris
403735c8e2
no need to export signatureKeyList type
2020-02-02 01:28:18 +00:00
Mauro Ciancio
ef09c1ba31
add support for multiple signature keys ( #209 )
2020-02-01 17:03:59 -08:00
Will Norris
3bdd0fe8ed
actions: always test with latest go version
2020-01-26 23:13:24 +00:00
Will Norris
c2dd079584
update github actions config
...
- combine windows and linux configs into a single matrix, now that
actions/cache handles file paths properly
- update to latest actions/checkout and codecov actions
2020-01-26 21:16:19 +00:00
Will Norris
176e818df9
use pkg.go.dev for documentation
2020-01-26 18:50:43 +00:00
Will Norris
7eeacfca7a
standardize copyright statements (Inc -> LLC)
2019-11-30 10:04:17 -08:00
Will Norris
6d25a48f48
use simple bash command for codecov
2019-11-04 06:30:42 +00:00
Will Norris
5c76261bfd
github actions: cache go modules; disable travis
...
This is mostly an experiment, but I think it will work well. GitHub
Actions provides MacOS and Windows builds (though I'm only adding in
Windows at the moment), and cleaner integration. Builds also seem to be
completing faster than Travis.
2019-11-02 11:39:05 -07:00
Will Norris
8ae8c1b2ea
run tests using GitHub Actions
2019-11-01 19:11:05 -07:00
Will Norris
d99be34251
use path package for matching content type
...
content type always uses forward slash, so path is the right package to
use.
fixes #191
2019-11-01 18:57:14 -07:00
Will Norris
c0a97f6742
simplify data.go and tests
...
remove unecessary string casting, and simplify duplicate tests. Also
don't use struct literals for test values.
2019-10-13 19:28:22 -07:00
Will Norris
3b850734af
cmd/imageproxy: use http.DefaultServeMux
...
this allows using the net/http/pprof package, and any other similar
package that registers handlers on the default ServerMux.
2019-10-13 11:16:34 -07:00
Will Norris
594376fc0f
docs: link from plugins design to relevant issues/prs
2019-10-12 15:51:58 -07:00
Shahan Khan
ea95ad93a1
Support for better content type detection with images on S3
2019-10-12 08:20:52 -07:00
Will Norris
fb937ccd1b
readme: add note about docker bind-mounts
...
when we changed the container to run as a non-root user, it broke some
imageproxy instances that were relying on the default docker user and
file permissions. Users running dockerized imageproxy with a
bind-mounted on-disk cache now need to make sure the user and file
permissions line up.
fixes #198
2019-09-13 12:40:48 +00:00
Will Norris
785c5bddd6
go.mod: group replacements into a single block
2019-09-07 21:41:14 +00:00
Will Norris
bee1a2766a
go.mod: fix module replacement to build with go1.13
...
- fix timestamp for github.com/golang/lint
- move one commit ahead of v0.12.0 for github.com/apache/thrift
2019-09-07 21:38:41 +00:00
Abdullah Saleem
57a4d4671e
Fixes #190 thrift dependency issue
2019-09-02 23:03:06 +00:00
Bastian Winkler
ec7166cc7a
modules: update goexif dependency
...
See https://github.com/rwcarlsen/goexif/issues/73 reasons
2019-08-11 07:51:15 -07:00
Simon Ramsay
4935eff835
updated docker entrypoint path to bin ( #183 )
...
path to bin was changed in v0.9.0
2019-06-12 09:19:01 -07:00
Will Norris
a7a8966289
add miscellaneous tests
...
also fix minor bug in detecting content type for content less than 512
bytes.
2019-06-11 14:02:44 -07:00
Will Norris
6975320eb4
additional tests for imageproxy-sign
2019-06-11 11:16:01 -07:00
Will Norris
ca8fe71a0a
refactor imageproxy-sign to make testing easier
2019-06-11 17:45:25 +00:00
Will Norris
24dac28957
0.9.0 release
2019-06-11 05:40:00 +00:00
Will Norris
b96e14a99f
update changelog and move to docs folder
2019-06-11 05:32:40 +00:00
Will Norris
50866d9f70
default to using cache value as provided
...
when parsing cache values, if the values doesn't match a recognized URL
pattern, we treat it as a filepath for an on-disk cache. However, this
doesn't appear to be working on Windows. I don't have easy access to a
Windows box to test this on, but I *think* this should fix it.
Refs #181
2019-06-11 04:39:47 +00:00
Will Norris
d4ba5205ff
add support for bmp images
...
handle decoding and encoding bmp images with transformations. Because
this isn't a popular file format, we don't actually expose it as an
option for format transformation.
Fixes #182
2019-06-11 04:25:08 +00:00
Will Norris
1569bfda30
add CII best practices badge
2019-06-10 01:00:19 +00:00
Will Norris
66cc052997
add contributing docs for reporting issues
2019-06-10 00:41:05 +00:00
Will Norris
be4555a867
document caching on Digital Ocean spaces
...
I briefly tested this, and it seems to work fine.
Fixes #159
2019-06-09 23:37:59 +00:00
Will Norris
53916943e5
update URL for my imageproxy instance
2019-06-09 23:03:42 +00:00
Will Norris
fe437a0b8c
allow specifying multiple cache with spaces
...
this is necessary for the new environment variable support for config
values. I don't love that allowHosts is comma separated and cache is
space separated :(
2019-06-09 22:09:55 +00:00
Will Norris
d8ed21c0f4
fix docker build with new envy package
2019-06-09 21:55:19 +00:00
Will Norris
50e0d1104d
allow using environment vars for configuration
...
fixes #151
2019-06-09 21:11:01 +00:00
Will Norris
dfcfda52de
add contribution guidelines for style and tests
2019-05-26 11:47:59 -07:00
Will Norris
e4a571d144
add status of plugin design to set expectation
2019-05-26 11:31:18 -07:00
Will Norris
69df3f68d8
initial sketch of registering plugins
2019-05-26 11:30:22 -07:00
Will Norris
627d27df2f
doc: initial draft of plugin design
2019-05-26 11:30:22 -07:00
Will Norris
86915f1076
add minimal contributing file
2019-05-26 11:28:39 -07:00
Will Norris
6ec1036afb
docs: make url signing examples more consistent
...
use consistent values for url and key and similar calling styles
(passing values as command line arguments. Also use more utilities from
the language standard library, such as java.util.Base64.
2019-05-13 13:11:40 -05:00
Ethan Mick
7af1b52eef
Fix signature documentation link location ( #180 )
...
Correct link from non-existent wiki page to new doc location on master
branch.
2019-05-13 08:28:08 -07:00
Will Norris
30534fb6d4
readme: suggest a simpler nginx config
...
the old nginx config was designed to prevent url canonicalization, which
is no longer a concern, and was causing problems with non-latin
characters.
Fixes #178
2019-05-12 11:09:26 -07:00
Harrison Healey
d4246a08fd
allow overriding the Logger used by Proxy
2019-04-22 16:49:45 -07:00
Will Norris
e1558d5626
add imageproxy-sign tool for calculating signatures
...
it's a little bit rough, but seems to work pretty well.
Ref #145
2019-03-27 21:56:21 +00:00