Commit Graph

62 Commits (6444380ea97b91d531b5946855d03be39422cf64)

Author SHA1 Message Date
Brian Goff 6444380ea9
Cache immutable URLs and handle outages (#51)
Cache immutable URLs and handle outages
1. Changes the blob cache to only cache by digest
2. Adds caching for manifests requested by digest
3. Cache but invalidate immediately (after 1s) mutable requests
4. Use invalidated cache (from 3) if the backend is down or 403 unauthorized
2020-10-08 16:18:02 +02:00
Ricardo Pardini 1ecf949482
Merge pull request #52 from rpardini/latest-is-not-multiarch
Mention :latest is amd64 only
2020-10-08 15:50:17 +02:00
Ricardo Pardini b997ccd47c
Mention :latest is amd64 only 2020-10-08 15:43:31 +02:00
Ricardo Pardini 1fc3dfed4a master workflow, builds amd64-only :latest and :latest-debug
- arm64 via qemu is waaay too slow
- tags are still multiarch
2020-10-08 15:37:41 +02:00
Ricardo Pardini 10bac0816b test workflow, naming and cosmetics 2020-10-08 15:27:34 +02:00
Ricardo Pardini 95bbab0f93 test workflow, add logging, fixes 2020-10-08 15:14:37 +02:00
Ricardo Pardini b4646a91ce experimental test workflow 2020-10-08 14:23:54 +02:00
Ricardo Pardini f031bb1919 experimental test workflow 2020-10-08 13:30:17 +02:00
Ricardo Pardini ffc878671c update README for 0.4.0-pre1, debugging scenarios, plain no-auth caching, and some wording 2020-10-08 03:02:23 +02:00
Ricardo Pardini fe388f560b silence mitmweb, nginx logs are hard enough to read 2020-10-08 02:45:49 +02:00
Ricardo Pardini 67edf7efda fix python3 deps for mitmproxy/mitmweb (-e DEBUG=true) 2020-10-08 02:32:00 +02:00
Ricardo Pardini ed592a27a8 Github Actions: quoting troubles 2020-10-08 02:00:31 +02:00
Ricardo Pardini ec4df7b4b7 GitHub Actions: multiarch build, new -debug version, much lighter layers 2020-10-08 01:57:49 +02:00
Ricardo Pardini 6b4a26e23c README: reword, one less header level 2020-10-06 11:16:03 +02:00
Ricardo Pardini f2254685f8 split README into registry-specific sections; add GitLab example (fixes #27 thanks @bephinix); some rewording 2020-10-06 11:06:42 +02:00
ricardop a2c0afcbc4 upgrade to nginx-1.18.0-alpine-3.12; alpine 3.12 changed a lot of python/pip/wheel stuff 2020-09-22 10:15:15 +02:00
ricardop 2c8be197be fix, we need openssl package even in non-debug builds 2020-06-08 15:48:14 +02:00
ricardop 6a1fe384f5 introduce Docker build-args:
- BASE_IMAGE, used in FROM line
- DEBUG_BUILD, build mitmproxy or not
2020-06-08 14:49:21 +02:00
ricardop 67a81cf781 0.3.0-beta2 seems stable enough for a release 2020-04-07 12:22:22 +02:00
ricardop 19cbdfedfc 0.3.0-beta2: don't leak Authorization header from the registry to the redirected destination during @handle_redirects 2020-04-03 15:33:46 +02:00
ricardop bbd4d60bc4 update README; bump to 0.3.0-beta1 2020-04-03 14:16:09 +02:00
ricardop 056c8521f9 use specific mitmproxy version (latest in 4.x branch) 2020-04-03 14:12:43 +02:00
ricardop 72dc9a8819 use alpine's coreutils base64, which supports -w 0 to avoid wrapping -- thanks @miihael 2020-04-03 14:06:19 +02:00
ricardop e72389b690 use explicit include for the proxy cache directive. 2020-04-03 14:05:01 +02:00
ricardop bc0ac351bb Merge branch 'pull/33' 2020-04-03 13:50:54 +02:00
ricardop ad75dce3d5 Merge branch 'pull/22' 2020-04-03 13:49:08 +02:00
ricardop 8e433337df Merge branch 'pull/16' 2020-04-03 13:45:57 +02:00
ricardop bb8ab751a7 Merge branch 'pull/30' 2020-04-03 13:41:12 +02:00
ricardop 2bd42f9a5b Bump base image version to nginx 1.16.1 and alpine 3.11 2020-04-03 13:34:29 +02:00
Ruud Kamphuis e90d203fc0
Follow redirects and cache them properly 2020-03-23 10:25:41 +01:00
Jeff Bachtel 75bc9e0825 Move apk add and del into same layer
Prevents bloating of final image
2020-01-28 15:28:22 -07:00
Ricardo Pardini 8ad0aaa25e
Merge pull request #25 from jgiannuzzi/upstream-sni
Use SNI during the TLS handshake with the upstream
2019-11-21 19:04:40 +01:00
Jonathan Giannuzzi cd028516c6
Use SNI during the TLS handshake with the upstream 2019-11-21 10:23:46 +01:00
Sebastián Ramírez f3d2eefc09 Add support for custom cache sizes 2019-09-27 13:44:07 -05:00
Sebastián Ramírez df8c057855 🐛 Fix entrypoint when AUTH_REGISTRIES is empty 2019-08-09 18:53:09 -05:00
Sebastián Ramírez 4e5e75e91d 📝 Fix extra colons in example in docs 2019-08-03 22:00:34 -05:00
Sebastián Ramírez abe5c4a644 Add support for GCR service account keys
and custom delimiters for registry auth strings
2019-08-03 21:40:03 -05:00
Ricardo Pardini 3e71b6fd57
remove some "$" usage in instructions, theres no good way to escape it in nginx literals
bump to 0.2.4
2019-01-16 21:43:01 +01:00
Ricardo Pardini d9bce2b880
bump to 0.2.3 2019-01-16 20:54:59 +01:00
Ricardo Pardini 7737bf807a
disable debug by default; fixes #9 2019-01-16 20:53:45 +01:00
Ricardo Pardini 686e8ae021
Merge pull request #8 from StanYago/master
added route for docker engine setup, just curl /setup/systemd | bash
2018-12-16 10:43:19 +01:00
Stan Yagolnitser d8434a02cf added sanity checks for /setup/systemd route 2018-12-14 12:18:28 -08:00
Ricardo Pardini 329bf342c0
Merge pull request #7 from StanYago/master
remove hardcoded DNS configuration
2018-12-12 10:29:09 +01:00
Stan Yagolnitser 653c4aad54 added route for quicker docker engine setup, just curl /setup | bash 2018-12-12 00:42:40 -08:00
Stan Yagolnitser a89cf362ad set nginx DNS configuration from container resolv.conf to allow proxy to operate behind firewall 2018-12-12 00:18:34 -08:00
Ricardo Pardini 97e77ccc56
update README to refer to 0.2.2, which is only cosmetic 2018-11-04 17:35:39 +01:00
Ricardo Pardini 19b9cdba0b
update README, remove whitespace from example invocation 2018-11-04 17:34:54 +01:00
Ricardo Pardini 8b03786636
update README for 0.2.1, details about authentication with Docker Hub and GCR. 2018-11-04 17:15:42 +01:00
Ricardo Pardini 895627a073
Merge branch 'debug' 2018-11-04 16:55:05 +01:00
Ricardo Pardini 80bb415d84
use 0.1.0 for invocation example 2018-11-04 16:51:58 +01:00