Commit Graph

386 Commits

Author SHA1 Message Date
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
Umputun
a963516783 switch from legacy FS functions to new constructor 2022-01-06 00:16:18 -06:00
Umputun
1315f04ddf bump deps 2022-01-06 00:16:18 -06:00
Umputun
64f57df860 add support of custom 404 page for assets server 2022-01-06 00:16:18 -06:00
Alexey Nesterov
2e8733b152 Correctly handle URL escaped paths
Consider proxy configuration `*,/test/(.*),https://dest/$1`.

When reproxy accepts a request with URL encoded path, i.e.
'/test/a%205%25%20b/' which the encoded form of '/test/a 5% b',
it is using request.URL.Path which is already URL decoded by Golang.

This causes an error in proxy.go while it is trying to validate the
destination with `url.Parse(match.Destination)` as, strictly speaking,
destination URL is not a valid URL anymore, it is `https://target-dest/a 5% b`.

With this fix, the original escaped URL stays as is, correctly passes
the validation and then it is up to destination server to URL decode and
correctly handle the URL.
2021-12-06 11:00:07 -06:00
Umputun
075f66825a update linter and address all lint warns 2021-11-09 12:47:41 -06:00
Umputun
8c59be3612 implement simple on/off basic-auth for all resources
lint: err shadowing

extract htpasswd file load and add tests
2021-11-09 12:47:41 -06:00
Alexey Nesterov
184d5ba87c Support regex in host / server
Main consideration is backward compatibility. example.com should be treated as an exact
match, where possible. So current order is: exact host, regex host, * or "".

Regex matches are cached for better performance, cache is invalidated once mappings are refreshed.
2021-11-04 12:00:17 -05:00