KCI-1/Proxy-Cache/cfgmap.yaml
2024-08-18 19:11:40 +01:00

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
}
}
}