133 Commits

Author SHA1 Message Date
Nova Kwok
9eda9ee799
Feature: Add Compression rate on header (#59)
* Add X-Compression-Rate on response header

* add test case for compression rate, change logging and other improvements

* move config to config.go, add header for safari and proxyMode, logging improvement

* update gitignore for remote-raw and coverage.txt

* Refine log level
2020-11-27 15:41:03 +08:00
Benny
1881ae83cc
Merge pull request #58 from webp-sh/url_decode_fix
url with url-encoded character fix
2020-11-25 11:34:01 +08:00
BennyThink
1056963bb2
fix one test case bug, remove one easy to fail test case,
improve test case stability by adding timeout to 60s
2020-11-24 22:57:34 +08:00
BennyThink
a67de53ae6
url with non-ascii fix, bump version
This commit has fixed issue reported in PR 57, add test case
2020-11-24 22:25:10 +08:00
Benny
08c333f3cd
Fiber v2, code format, typo,test case, go 1.15 and more (#54)
* upgrade to fiber v2

* code format

* remove redundant variables
* remove useless exportable variables/functions

* go mod replace

use our own mirror now.

* add test case for converter, use deferInit to make test more simple

* remove useless file and fix typo

* Makefile change
* upgrade to go 1.15
* remove wrong go test comments

* complete test case, coverage, coverage badge

* Fix version typo

* config struct fix

* add banner, show version, add server header, remove fiber startup message

Co-authored-by: n0vad3v <n0vad3v@riseup.net>
2020-11-21 13:26:03 +08:00
Nova Kwok
989de32940
Update Golang to 1.14.7 (#52) 2020-08-07 10:55:23 +08:00
Nova Kwok
2d2df5571d
Feature: WebP Proxy (#51)
* feat-webp-proxy

* Fix panic on clear Cache, modified output.

* Optimize etag fetch logic

* Update README for new docs website.

* Bump version to 0.2.0.
2020-08-06 14:55:20 +08:00
Nova Kwok
36eb669031
Update iOS render policy and test case, bump version to 0.1.5 (#50)
Update iOS render policy and test case, bump version to 0.1.5.
2020-07-14 17:56:16 +08:00
n0vad3v
6abbc14a84
Bump version 2020-07-01 21:51:11 +08:00
Benny
07f2fc6969
IE and assert fix (#49)
* Add test case for IE, postman and curl
* Simplify goOrigin code
* use assert
2020-07-01 21:39:28 +08:00
Benny
8970e8cf52
TestGoOrigin instead of TestgoOrigin 2020-06-30 18:18:08 +08:00
Nova Kwok
cfe84bf67c
Try add Etag on response by nova 2020-06-30 18:18:02 +08:00
n0vad3v
99f36b35f7
Render origin image on MSIE 2020-06-30 16:12:35 +08:00
Nova Kwok
14f99bfba3
Merge pull request #44 from webp-sh/unit-test
Added Unit Test to Travis CI
2020-05-23 16:41:28 +08:00
n0vad3v
acf53d2bdb Combine to Travis 2020-05-23 16:31:07 +08:00
Xian Li
e99e918e97
fix(Dockerfile): fix config.json PATH in Dockerfile (#45) 2020-05-23 12:40:48 +08:00
Benny~
6f8d978268
isSafari test case 2020-05-23 12:38:47 +08:00
Benny~
c26dfb90f3
Merge branch 'master' into unit-test 2020-05-23 12:15:22 +08:00
Xian Li
bfb34a8166
Merge pull request #42 from webp-sh/safari-ua
upgrade logrus and fix safari ua
2020-05-23 11:21:31 +08:00
Benny~
6f2ec5d73f
add test scripts 2020-05-23 09:54:06 +08:00
Benny~
3d92efaef1
encoder_test.go 2020-05-23 09:42:59 +08:00
Benny~
f150285f1c
helper_test.go
test command: go test -v helper_test.go helper.go  -cover
2020-05-23 09:12:45 +08:00
Benny~
e902d2e5d2
fix logf, add unit test as an example 2020-05-23 01:05:02 +08:00
Benny
c0509bb50f
upgrade logrus and fix safari ua 2020-05-22 17:16:10 +08:00
Nova Kwok
acb020fb7a
Add another UA for original image (#40) 2020-05-12 17:44:02 +08:00
muzi
8784918f8e
Merge pull request #37 from mathieu-aubin/patch-1
Add systemd alias
2020-04-02 11:42:11 +08:00
Mathieu Aubin
3ec84d0ca5
init alias
Adds an alias for the service so webp-server.service becomes available for use after install
2020-04-01 19:21:29 -04:00
Nova Kwok
98650634a8
Merge pull request #36 from webp-sh/prefetch
Add prefetch elapsed time
2020-04-01 23:34:47 +08:00
muzi
e0e987007f Add prefetch elapsed time 2020-04-01 08:42:59 +08:00
Benny
3d6618af70
Minify readme (#35)
* Minify README

* Move out related articles

* Add Docs

Co-authored-by: n0vad3v <n0vad3v@riseup.net>
2020-03-21 11:28:26 +08:00
n0vad3v
5cc9bf2588
Update README.
Bump to 0.1.2.
2020-03-20 13:20:02 +08:00
Yini Xu
ceebddbd43
Fix typo in router and README.md (#33)
* Update README.md

fix: correct a typo

* Update router.go

fix: correct a typo
2020-03-19 18:39:00 +08:00
n0vad3v
3f7f7a5cf2
Update README for CDN specifications. 2020-03-17 20:32:56 +08:00
muzi
cb4beb54f7
Add Dockerfile (#31)
* Add Dockerfile

* Add docker run mode
2020-03-13 21:28:19 +08:00
Nova Kwok
119925e7f9
Merge pull request #29 from webp-sh/systemd_fix
systemd service file update, close #27
2020-03-13 10:31:46 +08:00
Nova Kwok
56e5ac2b69
Hash on build (#30)
* Test for sha256

* Fix Path
2020-03-12 20:39:13 +08:00
Benny~
ca8aacd73d
systemd service file update, close #27
* remove capabilities: older kernel doesn't support
* remove reload: we don't support.
2020-03-12 19:33:13 +08:00
keshanechen
4288d19abc Merge branch 'master' of github.com:webp-sh/webp_server_go 2020-03-12 14:11:46 +08:00
keshanechen
ae4bc5cf43 update readme 2020-03-12 14:03:57 +08:00
Benny~
72dda9a1a6
remove confirmation on prefetch 2020-03-10 21:21:54 +08:00
Benny~
e1c4738b1d
one typo in code, Error->Errorf 2020-03-10 19:07:56 +08:00
Benny~
0b0da3b46c
default filemode is 644, remove x bit for a png file. Fix #26 2020-03-10 19:02:48 +08:00
Benny~
3caea2da38
Merge branch 'rmlfs' 2020-03-09 23:06:30 +08:00
Benny~
8f715cf862
remove lfs 2020-03-09 23:05:50 +08:00
n0vad3v
da11497f3c
Update README 2020-03-09 22:40:13 +08:00
Nova Kwok
e8e12ee10c
Merge pull request #24 from webp-sh/add-log-level
Add custom log level, unsupported file returns
2020-03-07 13:57:11 +08:00
n0vad3v
db8f60e7ab
Drop PPC support.
Fix config.json.
2020-03-07 13:48:30 +08:00
Benny~
880ef32606
log update 2020-03-07 13:34:47 +08:00
Benny~
e2e39e0690
add check for invalid img path 2020-03-07 13:09:58 +08:00
Benny~
6b266e8fb7
remove gif support, send not allowed ext file #25
because it's not perfect
2020-03-07 13:09:36 +08:00