Commit Graph

393 Commits

Author SHA1 Message Date
Umputun
a896f08eec add middleware to optionally allow requests from giving ips/ranges
add new remote param to docker and file providers

lint: http nil body

add support of remote ips to consul provider

local implementation of onlyfrom middleware

lint: missing comment

make proxy tests more readable

preffer public IP if any forwwarded
2023-11-26 16:17:04 -06:00
Umputun
36a5443378 update and vendoring
update realip deps

regroup deps, keep all indirect separately
2023-11-26 16:17:04 -06:00
Umputun
f37072e649 lint: minor warns in tests 2023-09-20 11:16:24 -05:00
Umputun
b090bb4300 bump deps, update to go 1.21 2023-09-20 11:08:36 -05:00
Nikita Shoshin
2b92c11cc9 fix redirects
Before this change redirects didn't work because method `Service.extendMapper` didn't copy
the value of `URLMapper.RedirectType` to the extended result.

To fix this we return the original `URLMapper` instead of creating a new one (it can also help
to avoid similar bugs in the future). We can reuse `URLMapper` because it is passed
by value.
2023-05-13 22:48:22 -05:00
Umputun
12bddda0f5 bump deps 2023-05-13 22:44:55 -05:00
Umputun
197246a05a drop legacy rand.Seed 2023-02-27 14:51:25 -06:00
Umputun
96904fe7c5 switch to go v1.20 2023-02-27 14:43:41 -06:00
Umputun
34d9f4d1d5 lint: minor warn on deferred close 2023-02-27 00:00:04 -06:00
Umputun
ffd6b08257 increase timeout a little for a flaky test 2023-02-26 16:21:16 -06:00
Umputun
00ff3e8f37 bump deps 2023-02-26 16:15:04 -06:00
Umputun
1e8a890b02 update actions versions in ci 2023-02-26 16:00:15 -06:00
Umputun
ca65980093 fix redirects for docker provider 2023-02-25 22:30:54 -06:00
Umputun
22063f08cd fix docker's labels max, make it include .9 for real 2023-02-25 12:57:16 -06:00
Ivan Dudin
2cd32609e9 fix typo 2023-01-28 12:41:46 -06:00
Ivan Dudin
3e57ed8232 Update README.md 2023-01-28 12:41:46 -06:00
Umputun
3fb30a7cbf fix overrides for site 2022-12-25 18:41:13 -06:00
Umputun
18fa817aa1 add local analytics to docs site 2022-12-25 18:30:35 -06:00
Umputun
0ce326dbaa update deps, switch to go 1.19 2022-09-06 22:24:41 -05:00
Umputun
a4b82174c9 add info about 0 timout 2022-08-29 17:22:46 -05:00
ravilushqa
546c2609b0 defer recover 2022-08-21 03:48:44 -05:00
Umputun
3cb546b015 add site icon 2022-08-09 22:58:11 -05:00
Umputun
3450148907 move docs for caching to subsection 2022-08-09 22:42:58 -05:00
Umputun
e6c0ddb6ef fix cache params 2022-08-09 17:37:13 -05:00
Umputun
6496196705 trigger site rebuild on dockerfile change 2022-08-09 17:27:32 -05:00
Umputun
dff390414d add caching for site 2022-08-09 17:22:23 -05:00
Umputun
a84bbc3603 drop redirect map on site 2022-08-08 17:01:50 -05:00
Umputun
e1e99fe9b8 simplify Dockerfile.site, eliminate copy commands 2022-08-08 16:53:53 -05:00
Umputun
0af7807e36 simplify site configuration 2022-08-08 16:34:12 -05:00
Umputun
45d699ef80 use extra_css for site styles 2022-08-08 15:49:53 -05:00
Umputun
77d82d9a0f switch site to mkdocs material 2022-08-07 15:21:34 -05:00
Vadim YR
b9e994be0c type in return error 2022-06-23 22:57:35 -05:00
dependabot[bot]
3e2b32573f Bump markdown-it from 12.0.4 to 12.3.2 in /site
Bumps [markdown-it](https://github.com/markdown-it/markdown-it) from 12.0.4 to 12.3.2.
- [Release notes](https://github.com/markdown-it/markdown-it/releases)
- [Changelog](https://github.com/markdown-it/markdown-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/markdown-it/markdown-it/compare/12.0.4...12.3.2)

---
updated-dependencies:
- dependency-name: markdown-it
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-12 12:22:31 -05:00
dependabot[bot]
eea06a5f4a Bump minimist from 1.2.5 to 1.2.6 in /site
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-12 12:22:05 -05:00
Umputun
f9eb8ac012 bump deps 2022-04-16 23:32:07 -05:00
Umputun
bca30df215 update github.com/go-pkgz/rest 2022-04-06 11:41:15 -05:00
Roman Makarenko
cda43cfb5c Add persistent volume to keep certificates 2022-03-17 01:51:23 -05:00
Umputun
5b76633089 fix basic auth docs 2022-02-25 13:24:24 -06:00
Umputun
6695079c57 make sure two consecutive Server calls return the same list of servers 2022-02-23 18:07:38 -06:00
Umputun
b4225a4a4d fix error message 2022-02-15 03:00:34 -06:00
Negasus
4126fa7993 update error message 2022-02-15 02:59:44 -06:00
Negasus
22bea287e4 return error on wrong ssl.type value 2022-02-15 02:59:44 -06:00
dependabot[bot]
a3d0c10302 Bump follow-redirects from 1.13.3 to 1.14.8 in /site
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.13.3 to 1.14.8.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.13.3...v1.14.8)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-14 11:21:46 -06:00
Umputun
19bd58df41 optimize side build, add --platform=$BUILDPLATFORM 2022-02-13 14:30:07 -06:00
Umputun
abc955a247 clarify default routing for docker provider 2022-02-13 14:23:55 -06:00
Umputun
6b0953f0a6 update deps 2022-02-09 23:19:50 -06:00
dependabot[bot]
cfe149c689 Bump postcss from 8.2.10 to 8.2.13 in /site
Bumps [postcss](https://github.com/postcss/postcss) from 8.2.10 to 8.2.13.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.2.10...8.2.13)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-21 22:05:06 -06:00
dependabot[bot]
b464c343f6 Bump nanoid from 3.1.22 to 3.2.0 in /site
Bumps [nanoid](https://github.com/ai/nanoid) from 3.1.22 to 3.2.0.
- [Release notes](https://github.com/ai/nanoid/releases)
- [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ai/nanoid/compare/3.1.22...3.2.0)

---
updated-dependencies:
- dependency-name: nanoid
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-21 22:02:41 -06:00
Umputun
05069cbfaa revendor with fixed rest lib 2022-01-06 01:48:10 -06:00
Umputun
e2a40bc7a6 update rest library for proper 404 content type 2022-01-06 01:07:50 -06:00