20 lines
455 B
YAML
20 lines
455 B
YAML
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: mirror-proxy-cfg
|
|
data:
|
|
nginx.conf: |
|
|
http {
|
|
# Define caching path and zone
|
|
proxy_cache_path /cache levels=1:2 keys_zone=my_cache:10m max_size=10g inactive=60m;
|
|
|
|
server {
|
|
# ...
|
|
location / {
|
|
proxy_cache my_cache;
|
|
proxy_pass http://mirror.0xem.ma; # Replace with your actual upstream server
|
|
}
|
|
}
|
|
}
|
|
|