Will Norris
a9efefc8e7
add request signature support to Proxy
2015-05-14 15:30:07 -07:00
Will Norris
9d6f8fdf7d
refactor whitelist check in preparation for signature check
2015-05-14 15:30:06 -07:00
Vincent Reydet
6553dd0603
add debian init files
2015-05-12 19:08:25 -07:00
Will Norris
5d8b630ff2
omit empty quality from option string
2015-05-11 19:29:25 -07:00
Will Norris
b1de3a9dd6
add String method to Request
2015-05-11 17:12:03 -07:00
Will Norris
fc093b71eb
switch to port 4593
2015-05-10 22:55:33 -07:00
Will Norris
ac6dd6d1d1
move badges inline with header; add license badge
2015-05-05 09:56:37 -07:00
Will Norris
436e081e7d
add badges to README
2015-05-05 07:53:46 -07:00
Will Norris
d3a07a8f56
add travis configuration
2015-05-05 07:53:05 -07:00
Will Norris
85e5dcdddc
rsc.io/grind cleanup
2015-05-04 10:26:22 -07:00
Will Norris
ad54d71881
first pass at supporting a default base URL
...
this allows remote images to be specified as relative URLs, relative to
the `DefaultBaseURL` field. Fixes #15 .
2015-04-28 08:25:10 -07:00
Will Norris
dbac2f8063
log transform errors
2015-03-17 23:47:43 -07:00
Will Norris
2b84ef01ed
log requests and whether response is from cache
...
also make sure request body is always closed
fixes #17
2015-02-24 09:34:49 -08:00
Will Norris
1bf0515cef
be a little more precise in copying headers
...
it doesn't matter too much right now, given the headers that are being
copied, but this now makes sure that all header values get copied over
if multiple are present.
2015-02-20 23:52:52 -08:00
Will Norris
bf8d7a0cd8
copy original content-type from remote response
2015-02-20 13:05:31 -08:00
Will Norris
15eb6b6da6
bump to 0.2.3
2015-02-20 00:00:13 -08:00
Will Norris
5fcf0855ff
update debian package information
2015-02-19 23:59:33 -08:00
Will Norris
c9e7abaae0
move docs for quality option after flip
2015-02-14 23:31:30 -08:00
Will Norris
089ff8925d
update readme to just run imageproxy rather than go run
2015-02-14 23:28:45 -08:00
Parker Moore
bf06767283
readme: install command for quick usage
...
Installing the server should be as simple as `go get`, and running it should be as simple as executing the compiled binary. The previous option was a bit round-about.
2015-02-14 22:39:14 -08:00
Will Norris
d74dd6e985
rename jpegQuality to defaultQuality
...
Also fix a few go vet errors
2015-02-12 14:21:26 -08:00
Pete Smith
e7b0a5b88c
Add quality option
...
- Added 'q' option to specify quality (used for JPEGs)
- Updated tests
- Update documentation
2015-02-12 17:49:43 +00:00
Will Norris
0980ea64a0
define constants for option strings
...
this prevents extra allocations in ParseOptions and cleans up the code a
bit, but doesn't actually improve performance in any meaningful way.
2015-01-25 00:30:15 -08:00
Will Norris
c79633735f
bump to 0.2.2
2014-12-08 16:48:20 -08:00
Will Norris
76faab6363
add lots more tests
2014-12-04 17:32:40 -08:00
Will Norris
dd1df4631b
add tests for transformImage
2014-12-04 12:36:08 -08:00
Will Norris
882c2b3782
restructure transform code for easier testing
2014-12-04 09:02:25 -08:00
Will Norris
2e68caff67
more docs and rename TransformingTransport.Client
2014-11-26 16:49:48 -08:00
Will Norris
f476aa27c3
ignore favicon requests
2014-11-23 16:04:53 -08:00
Will Norris
54ddf21df2
add docs and cleanup data code
...
- simplify ParseOptions
- add lots of docs to ParseOptions and NewRequest
- cleanup some data tests
No behavioral changes.
2014-11-23 15:41:55 -08:00
Will Norris
ea67c79ffe
interpret negative height and width values as 0
2014-11-23 14:01:50 -08:00
Will Norris
2dd79ebd20
minor cleanup of error messages
...
- used same string for logging and error response to ensure they stay in
sync
- pass through any http error status codes from remote URLs
2014-11-21 17:59:51 -08:00
Will Norris
8ada90ffd2
small readme updates
...
- mention in-memory cache and how to use alternate cache implementations
- add link to upstart config script
2014-11-21 10:02:19 -08:00
Will Norris
dd2508d21c
add getting started and deploying instructions
...
This is a first pass at addressing #8
2014-11-21 09:42:42 -08:00
Will Norris
0729544149
add explicit links for example images
...
GitHub uses their own image proxy (camo), which the example images were
linking to. Switch to an explicit link, so that the full exmaple URL
can be seen.
2014-11-21 09:02:24 -08:00
Will Norris
5a4e602373
small cleanup of check304 and add more tests
...
Remove unused ResponseWriter parameter from check304, add function docs,
and add TODO for alternate Etag header values that we should handle.
Add tests for Proxy.allowed and check304.
2014-11-21 07:51:19 -08:00
Will Norris
e0a9588607
add cacheSize flag to cmd/imageproxy
...
httpcache hardcodes the cache size to 100MB. We are still using that as
the default value, but it can now be overridden.
refs #9
2014-11-21 07:48:24 -08:00
Will Norris
7994cb2cf6
handle error returned when fetching remote images
2014-11-19 22:22:21 -08:00
Will Norris
dae09a8c9d
rename proxy.go and remove old data package doc
2014-11-19 22:02:34 -08:00
Will Norris
4a5f24e4ec
there's no need for Options to be a pointer
2014-11-19 21:59:52 -08:00
Will Norris
c5b279b947
move jpeg quality to const
2014-11-19 21:59:12 -08:00
Will Norris
1bf3ccab06
remove unnecessary break statements
2014-11-19 21:57:50 -08:00
Will Norris
7d5c68c4a0
update upstart config to run as www-data user
2014-11-11 08:41:29 -08:00
Will Norris
a80158a53a
add new go14-style import comment
...
see http://golang.org/s/go14customimport
Also rename scripts directory to etc
2014-10-11 18:18:13 -07:00
Will Norris
71a5b6ef84
update example URLs
...
switch from s.wjn.me to willnorris.com/api/imageproxy
2014-09-28 11:55:28 -07:00
Will Norris
1421902e42
remove golang dependency in deb file
2014-08-13 06:49:15 -07:00
Will Norris
bfbc8ff5ee
remove MaxWidth and MaxHeight options
...
These were originally added to prevent a denial of service caused by
requesting very large images, but are no longer needed since we no
longer resize images larger than their original size.
2014-08-06 08:47:41 -07:00
Will Norris
a74e590181
restructure imageproxy package
...
- move binary from imageproxy.go to cmd/imageproxy/main.go
- move proxy package up to top level
2014-07-30 18:23:43 -07:00
Will Norris
c5b89e481c
update URL for example image
2014-07-06 14:43:01 -07:00
Will Norris
98d762ef7a
bump to v0.2.0
2014-07-02 07:42:38 -07:00