config update
This commit is contained in:
parent
a2273ed96e
commit
4a7560c41f
@ -7,6 +7,6 @@ RUN go build -o /cache-proxy ./cmd/proxy
|
|||||||
|
|
||||||
FROM docker.io/library/alpine:3.21 as runtime
|
FROM docker.io/library/alpine:3.21 as runtime
|
||||||
COPY --from=0 /cache-proxy /bin/cache-proxy
|
COPY --from=0 /cache-proxy /bin/cache-proxy
|
||||||
WORKDIR /etc/
|
WORKDIR /
|
||||||
VOLUME /data
|
VOLUME /data
|
||||||
CMD cache-proxy
|
CMD cache-proxy
|
||||||
|
@ -7,13 +7,13 @@ services:
|
|||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- ./config.yaml:/etc/config.yaml:ro
|
- ./config.yaml:/config.yaml:ro
|
||||||
- ./data:/data
|
- ./data:/data
|
||||||
ports:
|
ports:
|
||||||
- 8881:8881
|
- 8881:8881
|
||||||
environment:
|
environment:
|
||||||
- HTTPS_PROXY=http://100.64.0.23:7897
|
- HTTPS_PROXY=http://100.64.0.23:7890
|
||||||
- HTTP_PROXY=http://100.64.0.23:7897
|
- HTTP_PROXY=http://100.64.0.23:7890
|
||||||
- ALL_PROXY=http://100.64.0.23:7897
|
- ALL_PROXY=http://100.64.0.23:7890
|
||||||
- SENTRY_DSN=https://f67f22a7d459544ea705e3d7872d680b@o353589.ingest.us.sentry.io/4508486851166208
|
- SENTRY_DSN=https://f67f22a7d459544ea705e3d7872d680b@o353589.ingest.us.sentry.io/4508486851166208
|
||||||
- LOG_LEVEL=debug
|
- LOG_LEVEL=debug
|
12
config.yaml
12
config.yaml
@ -3,11 +3,11 @@ upstream:
|
|||||||
match:
|
match:
|
||||||
match: /(debian|ubuntu|ubuntu-releases|alpine|archlinux|kali|manjaro|msys2|almalinux|rocky|centos|centos-stream|centos-vault|fedora|epel|gnu)/(.*)
|
match: /(debian|ubuntu|ubuntu-releases|alpine|archlinux|kali|manjaro|msys2|almalinux|rocky|centos|centos-stream|centos-vault|fedora|epel|gnu)/(.*)
|
||||||
replace: '/$1/$2'
|
replace: '/$1/$2'
|
||||||
- server: http://mirrors.tencent.com
|
- server: https://mirrors.tencent.com
|
||||||
match:
|
match:
|
||||||
match: /(debian|ubuntu|ubuntu-releases|alpine|archlinux|kali|manjaro|msys2|almalinux|rocky|centos|centos-stream|centos-vault|fedora|epel|gnu)/(.*)
|
match: /(debian|ubuntu|ubuntu-releases|alpine|archlinux|kali|manjaro|msys2|almalinux|rocky|centos|centos-stream|centos-vault|fedora|epel|gnu)/(.*)
|
||||||
replace: '/$1/$2'
|
replace: '/$1/$2'
|
||||||
- server: http://mirrors.ustc.edu.cn
|
- server: https://mirrors.ustc.edu.cn
|
||||||
match:
|
match:
|
||||||
match: /(debian|ubuntu|ubuntu-releases|alpine|archlinux|kali|manjaro|msys2|almalinux|rocky|centos|centos-stream|centos-vault|fedora|epel|elrepo|remi|rpmfusion|tailscale|gnu|rust-static)/(.*)
|
match: /(debian|ubuntu|ubuntu-releases|alpine|archlinux|kali|manjaro|msys2|almalinux|rocky|centos|centos-stream|centos-vault|fedora|epel|elrepo|remi|rpmfusion|tailscale|gnu|rust-static)/(.*)
|
||||||
replace: '/$1/$2'
|
replace: '/$1/$2'
|
||||||
@ -19,7 +19,7 @@ upstream:
|
|||||||
match:
|
match:
|
||||||
match: /ubuntu/(.*)
|
match: /ubuntu/(.*)
|
||||||
replace: /$1
|
replace: /$1
|
||||||
- server: http://releases.ubuntu.com/
|
- server: https://releases.ubuntu.com/
|
||||||
match:
|
match:
|
||||||
match: /ubuntu-releases/(.*)
|
match: /ubuntu-releases/(.*)
|
||||||
replace: /$1
|
replace: /$1
|
||||||
@ -43,7 +43,7 @@ upstream:
|
|||||||
match:
|
match:
|
||||||
match: /kylinlinux/(.*)
|
match: /kylinlinux/(.*)
|
||||||
replace: /$1
|
replace: /$1
|
||||||
- server: http://cdn.jsdelivr.net
|
- server: https://cdn.jsdelivr.net
|
||||||
match:
|
match:
|
||||||
match: /jsdelivr/(.*)
|
match: /jsdelivr/(.*)
|
||||||
replace: /$1
|
replace: /$1
|
||||||
@ -67,7 +67,7 @@ upstream:
|
|||||||
match:
|
match:
|
||||||
match: /epel/(.*)
|
match: /epel/(.*)
|
||||||
replace: /$1
|
replace: /$1
|
||||||
- server: http://deb.debian.org
|
- server: https://deb.debian.org
|
||||||
match:
|
match:
|
||||||
match: /(debian|debian-security)/(.*)
|
match: /(debian|debian-security)/(.*)
|
||||||
replace: /$1/$2
|
replace: /$1/$2
|
||||||
@ -92,7 +92,7 @@ misc:
|
|||||||
cache:
|
cache:
|
||||||
timeout: 1h
|
timeout: 1h
|
||||||
policies:
|
policies:
|
||||||
- match: '.*\.(rpm|deb|apk)$' # rpm/deb/apk won't change, create only
|
- match: '.*\.(rpm|deb|apk|iso)$' # rpm/deb/apk/iso won't change, create only
|
||||||
refresh-after: never
|
refresh-after: never
|
||||||
- match: '^/.*-security/.*' # mostly ubuntu/debian security
|
- match: '^/.*-security/.*' # mostly ubuntu/debian security
|
||||||
refresh-after: 1h
|
refresh-after: 1h
|
||||||
|
Loading…
x
Reference in New Issue
Block a user