Commit graph

1214 commits

Author SHA1 Message Date
Jimmy Zelinskie 5b771c47a1 go: bump dependencies, require Go 1.14 2020-04-30 19:39:17 -04:00
Jimmy Zelinskie bdc4f7b4d6
Merge pull request #487 from chihaya/dependabot/go_modules/github.com/spf13/cobra-0.0.7
build(deps): bump github.com/spf13/cobra from 0.0.3 to 0.0.7
2020-04-30 19:22:10 -04:00
Jimmy Zelinskie 54f761efe7
Merge pull request #488 from chihaya/dependabot/go_modules/github.com/alicebob/miniredis-2.5.0incompatible
build(deps): bump github.com/alicebob/miniredis from 2.4.6+incompatible to 2.5.0+incompatible
2020-04-30 19:21:45 -04:00
Jimmy Zelinskie 03ac7353e0
Merge pull request #483 from jzelinskie/dependabot-ci
.github/workflows: only run dependabot CI on PR
2020-04-30 19:20:57 -04:00
dependabot-preview[bot] a13acda170
build(deps): bump github.com/alicebob/miniredis
Bumps [github.com/alicebob/miniredis](https://github.com/alicebob/miniredis) from 2.4.6+incompatible to 2.5.0+incompatible.
- [Release notes](https://github.com/alicebob/miniredis/releases)
- [Changelog](https://github.com/alicebob/miniredis/blob/master/CHANGELOG.md)
- [Commits](https://github.com/alicebob/miniredis/compare/v2.4.6...v2.5.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-30 08:24:52 +00:00
dependabot-preview[bot] 7e16002dc0
build(deps): bump github.com/spf13/cobra from 0.0.3 to 0.0.7
Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra) from 0.0.3 to 0.0.7.
- [Release notes](https://github.com/spf13/cobra/releases)
- [Changelog](https://github.com/spf13/cobra/blob/master/CHANGELOG.md)
- [Commits](https://github.com/spf13/cobra/compare/v0.0.3...0.0.7)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-30 08:24:35 +00:00
Jimmy Zelinskie b072bb4166 .github/workflows: only run dependabot CI on PR 2020-04-29 13:13:40 -04:00
Jimmy Zelinskie 61e9d47a77
Merge pull request #477 from moistari/fix-dockerfile
Fixes Dockerfile
2020-04-07 11:34:08 -04:00
mohammad istari 64d471d13a Fixes Dockerfile
With Go Modules, the current Dockerfile ignores the code that was COPY'd
from the Docker context (and thus always building/installing what was on
GitHub).
2020-04-06 11:17:41 +07:00
Jimmy Zelinskie b1852c7c8e
Merge pull request #469 from jzelinskie/fix-badge
readme: fix broken build status badge
2020-03-11 10:17:33 -04:00
Jimmy Zelinskie b61fe233df
Merge pull request #470 from chihaya/sponsor
github: init funding
2020-03-11 10:17:19 -04:00
Jimmy Zelinskie 0a725f7d44 github: init funding
This adds a sponsor GitHub link
2020-03-10 21:26:44 -04:00
Jimmy Zelinskie 5e0ee0bd00 workflows: execute on pull request 2020-03-10 21:25:46 -04:00
Jimmy Zelinskie 130e186006 readme: fix broken build status badge
The link and image source were reversed by accident.
2020-02-20 13:13:38 -05:00
Jimmy Zelinskie 2a3bb5bea0
Merge pull request #468 from jzelinskie/workflows
Replace TravisCI with GitHub Workflows
2020-02-20 13:09:42 -05:00
Jimmy Zelinskie 7ba4b68138 dist: remove all traces of travisci 2020-02-18 11:21:43 -05:00
Jimmy Zelinskie 0e17b1352b .github: init workflow 2020-02-18 11:21:42 -05:00
mrd0ll4r e6e72698b9
Merge pull request #466 from elotreum/routeparam-enhancement
add helper method to retrieve RouteParam by name
2020-01-22 22:28:52 +01:00
elotreum d70d300422 add godoc explaining catch-all parameter matching for ByName 2020-01-20 11:31:45 -07:00
elotreum e0b50f3ffa add helper method to retrieve RouteParam by name 2020-01-19 20:35:21 -07:00
mrd0ll4r 85d646d1ad
Merge pull request #465 from elotreum/custom-routes
http: allow for customized routes
2020-01-18 11:40:37 +01:00
elotreum 452eb1acef update routes in travis config files 2020-01-16 20:12:21 -07:00
elotreum 9e7323fa44 correct godoc comments to include period 2020-01-16 19:43:50 -07:00
elotreum 77a52f9f30 http: allow for customized routes
Update to allow arrays of routes to be passed to the http frontend.
This also supports named parameters as permitted by the
router.

To avoid external dependencies in the middleware, a RouteParam and
RouteParams type was added to the bittorrent package.

Note: this eliminates the need for "enable_legacy_php_urls", as
the the additional route could be added to the route array. However,
this may be considered a breaking change.
2020-01-14 16:35:28 -07:00
Jimmy Zelinskie 89cdaa8c6d
Merge pull request #464 from elotreum/header-fixes
http: explicitly set Content-Type header
2020-01-14 15:52:46 -05:00
elotreum 5082146ae9 http: explicitly set Content-Type header
Since Content-Type is not explicitly set, golang sniffs the responses
and attempts a guess. With announce responses, this usually means it
guesses application/octet-stream.

According to the godoc at
https://golang.org/pkg/net/http/#ResponseWriter

// If WriteHeader has not yet been called, Write calls
// WriteHeader(http.StatusOK) before writing the data. If the Header
// does not contain a Content-Type line, Write adds a Content-Type set
// to the result of passing the initial 512 bytes of written data to
// DetectContentType. Additionally, if the total size of all written
// data is under a few KB and there are no Flush calls, the
// Content-Length header is added automatically.
2020-01-14 13:31:25 -07:00
mrd0ll4r 053ce531d9
Merge pull request #461 from mrd0ll4r/travis-e2e
travis: add e2e tests with redis storage
2019-10-24 10:14:48 +09:00
Leo Balduf c8c0de539c travis: get stuff to work 2019-10-18 10:42:57 +09:00
Leo Balduf 9acf809ffb docker: update Dockerfile for Go 1.13+ 2019-10-17 15:00:16 +09:00
Leo Balduf a9a2d37f11 docs: update redis storage docs 2019-10-17 14:59:59 +09:00
Leo Balduf 728ec0c623 readme: update readme, move example config 2019-10-17 14:59:44 +09:00
Leo Balduf ae431e1361 travis: refactor into scripts&configs, move to dist/travis 2019-10-17 14:58:24 +09:00
Leo Balduf ddeb44b527 travis: add e2e tests with redis storage 2019-10-17 13:02:24 +09:00
mrd0ll4r 0a420fe053
Merge pull request #458 from mrd0ll4r/update-travis
travis: update to go 1.13
2019-10-17 13:01:49 +09:00
Leo Balduf 797d0cb6e2 travis: try to go get the latest dependencies 2019-10-17 12:51:53 +09:00
Leo Balduf 0936bd3f9a cmd/chihaya: fix imports for updated goimports 2019-10-17 12:51:53 +09:00
Leo Balduf f4d34b54e5 travis: update to go 1.13 2019-10-17 12:51:53 +09:00
mrd0ll4r 4d58b4bce6
Merge pull request #459 from mrd0ll4r/frontend-defaults
Frontend defaults
2019-10-17 12:45:42 +09:00
Leo Balduf 87c72bc516 config: update example config 2019-10-17 12:38:08 +09:00
Leo Balduf cb88a11d6a frontend: add defaults for parser options 2019-10-12 12:52:16 +09:00
mrd0ll4r eed141dbe4
Merge pull request #454 from onestraw/rmdoc
docs: remove memorybysubnet
Fixes #452
2019-02-19 10:28:43 +03:00
onestraw acdce7fea9 docs: remove memorybysubnet #452
Change-Id: I6907910e5752e0e0bd47c80f331e76210bbc744e
2019-02-19 14:57:15 +08:00
Jimmy Zelinskie 3889888f8a
Merge pull request #451 from jzelinskie/remove-endorsements
readme: remove endorsements
2019-02-14 17:44:37 -05:00
Jimmy Zelinskie 7b64e92ee9 readme: remove endorsements
We never got format approval for anything here, so I think we'd all feel
more comfortable not including it.
2019-02-14 15:04:33 -05:00
Jimmy Zelinskie a48ab487e2
Merge pull request #450 from cooperlees/master
Remove Facebook from README.md
2019-02-14 15:03:34 -05:00
Cooper Ry Lees d7cfcacbff Remove Facebook from README.md
- We no longer use the code that is on HEAD
- We should not incorrectly state that we do and mislead the general public
2019-02-14 09:25:13 -08:00
Jimmy Zelinskie 68b8edfdd5
Merge pull request #449 from jzelinskie/rm-memorybysubnet
storage: remove memorybysubnet
2019-02-14 11:10:11 -05:00
Jimmy Zelinskie 3e334b9536 storage: remove memorybysubnet
This code, while interesting, was only relevant to Facebook and they use
their own fork that they maintain. There was not enough outside
interest to warrant maintaining. I'd rather us use the effort to support
a redis storage backend instead.
2019-02-13 19:44:04 -05:00
Jimmy Zelinskie 94696c062e
Merge pull request #406 from chihaya/readme-refresh
readme refresh & add doc for architecture
2019-02-13 17:09:28 -05:00
Jimmy Zelinskie a6df644597
Merge pull request #448 from jzelinskie/go-modules
vendor: move to Go modules for dependencies
2019-02-13 17:08:55 -05:00