Yes It works
This commit is contained in:
parent
7e6684e4a1
commit
7baa9e3c75
@ -24,7 +24,8 @@ spec:
|
|||||||
- name: tmpfscache
|
- name: tmpfscache
|
||||||
mountPath: /cache
|
mountPath: /cache
|
||||||
- name: nginxconfig
|
- name: nginxconfig
|
||||||
mountPath: /etc/nginx
|
mountPath: /etc/nginx/nginx.conf
|
||||||
|
subPath: nginx.conf
|
||||||
readOnly: true
|
readOnly: true
|
||||||
volumes:
|
volumes:
|
||||||
- name: tmpfscache
|
- name: tmpfscache
|
||||||
|
@ -4,7 +4,27 @@ metadata:
|
|||||||
name: mirror-proxy-cfg
|
name: mirror-proxy-cfg
|
||||||
data:
|
data:
|
||||||
nginx.conf: |
|
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 {
|
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
|
# Define caching path and zone
|
||||||
proxy_cache_path /cache levels=1:2 keys_zone=my_cache:10m max_size=10g inactive=60m;
|
proxy_cache_path /cache levels=1:2 keys_zone=my_cache:10m max_size=10g inactive=60m;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user