Yes It works

This commit is contained in:
Emma Ruby 2024-08-18 19:25:28 +01:00
parent 7e6684e4a1
commit 7baa9e3c75
2 changed files with 22 additions and 1 deletions

View File

@ -24,7 +24,8 @@ spec:
- name: tmpfscache
mountPath: /cache
- name: nginxconfig
mountPath: /etc/nginx
mountPath: /etc/nginx/nginx.conf
subPath: nginx.conf
readOnly: true
volumes:
- name: tmpfscache

View File

@ -4,7 +4,27 @@ metadata:
name: mirror-proxy-cfg
data:
nginx.conf: |
user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log notice;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
sendfile on;
# Define caching path and zone
proxy_cache_path /cache levels=1:2 keys_zone=my_cache:10m max_size=10g inactive=60m;