Commit Graph

42 Commits

Author SHA1 Message Date
Umputun
3dd986ba16 lint: silly thing 2021-05-14 22:03:16 -05:00
Umputun
b79a9faf3c support size units #71 2021-05-14 22:01:27 -05:00
Negasus
738c3baf6c add consul catalog provider 2021-05-13 01:14:04 -05:00
Umputun
5c1ab356cc fix default ssk port selection 2021-05-03 21:52:08 -05:00
Umputun
4c051ca37f detect in-container and set listen address to 0.0.0.0 (#62)
* detect in-container and set listen to 0.0.0.0

* simplify default address logic

don't change if user defined, use 127.0.0.1:8080 for non-docker and 0.0.0.0:8080 for in-docker only if nothing set

* add dynamic default to redir http port

* add docs about dynamic defaults

* add ssl example

* lint: params warn
2021-05-03 21:40:21 -05:00
Umputun
5743109210 Nice error (#61)
* add support of html error reporting with custom templates

* typo

* formatting

* better template load error msg
2021-04-30 04:03:36 -05:00
Umputun
2670144e8a add support of docker route prefix 2021-04-28 14:00:38 -05:00
Umputun
a4cffbe922 Mime cache (#59)
* support different caching duration for different mime types #58

* extract main code to run func

* lint: err shadowing
2021-04-26 18:51:48 -05:00
Umputun
c590c3246d Assets cache (#54)
* add caching control for assets
* regen site
2021-04-23 02:02:36 -05:00
Umputun
8ea0052228 implement basic support of metrics via mgmt server #35 2021-04-20 19:22:46 -05:00
Umputun
3499836b90 fix typo in help msg 2021-04-19 03:25:59 -05:00
Timofey
7f991b1e18 Refactor
Thx for the feedback.

* Add missing test
* Decouple containerInfo from docker client
* Move refresh interval var to `Docker`
* Minor things
2021-04-16 17:30:54 -05:00
Timofey
a91fb6816f Invoke Docker API directly
* Remove third-party docker client dependency
* Simplify code and tests

Might need to run `go mod tidy` and `go mod vendor` afterwards
2021-04-16 17:30:54 -05:00
Umputun
8cf4b9063d Multiple static location (#36)
* add isStatic flag to mapper, implement for file and static providers

* handle static match response as a special case

* move assets conversion to load time

* rename static to assets everywhere for consistency

* don't overwride asset param in url mapper

* add documentation about assets mode

* add tests
2021-04-16 02:49:00 -05:00
Vladimir Garvardt
66610ef491 Replaced github.com/pkg/errors with stdlib errors wrap 2021-04-14 11:44:20 -05:00
Umputun
6dcc2fa719 flip signature, disabled by default 2021-04-13 14:08:15 -05:00
Umputun
d8309ab6f2 allow optional stdout logging 2021-04-13 12:45:49 -05:00
Umputun
64fd98a130 all timeouts are customizable #5 2021-04-12 21:54:59 -05:00
Umputun
a20abd0140 change docker default and add autoapi param #20 2021-04-12 02:57:13 -05:00
Umputun
1ac2f23504 adjust tests for delayed events 2021-04-12 02:29:17 -05:00
Umputun
a79cd3c7a4 correct providers order 2021-04-12 02:07:35 -05:00
Umputun
5a98338f84 fix separator conflict between env and static rule parts 2021-04-11 23:18:06 -05:00
Umputun
46d83f235e don't run discovery if no providers 2021-04-11 14:21:58 -05:00
Umputun
be20b0b636 allow use of assets server without any provider 2021-04-10 14:34:28 -05:00
Umputun
b0dcad19fc disable network check by default 2021-04-10 02:08:26 -05:00
Umputun
6508c95eae update deps 2021-04-09 15:31:14 -05:00
Umputun
9029b4d60f lint: multiple warns cleanup 2021-04-09 15:05:22 -05:00
Umputun
6ab7ae8225 fix missing fqdn param and default for redirect port 2021-04-09 02:28:13 -05:00
Umputun
c18d0e8cb7 change docker default network to bridge 2021-04-08 22:07:40 -05:00
Umputun
af1cd3ae46 back to 1.15 compat 2021-04-06 23:50:04 -05:00
Umputun
a835b66bf9 missing file for prev commit 2021-04-06 23:18:27 -05:00
Umputun
6e31a87a40 add access log 2021-04-05 22:12:06 -05:00
Umputun
f8cd5f53b0 rename to reproxy 2021-04-03 14:23:23 -05:00
Umputun
2092674d2f fix tag typo in opts 2021-04-03 02:45:43 -05:00
Umputun
ee51a35513 some initial docs 2021-04-03 02:31:48 -05:00
Umputun
d45415080a allow custom https and http ports 2021-04-03 01:20:24 -05:00
Umputun
79f0514294 lint: multiple warns 2021-04-03 01:00:09 -05:00
Umputun
a316070eb6 add ssl suport 2021-04-03 00:22:54 -05:00
Umputun
7c08a09053 allow docker provider on exposed and matched network 2021-04-02 00:50:16 -05:00
Umputun
190b194d88 support multiple servers 2021-04-02 00:07:36 -05:00
Umputun
0dcb927e01 add headers mw 2021-04-01 02:53:42 -05:00
Umputun
8a7b73f41f initial version #1 2021-04-01 02:37:28 -05:00