161 lines
5.9 KiB
Text
161 lines
5.9 KiB
Text
proxy_set_header HOST $host;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
proxy_buffering on;
|
|
proxy_buffer_size 1k;
|
|
proxy_buffers 64 4k;
|
|
proxy_busy_buffers_size 8k;
|
|
proxy_max_temp_file_size 2048m;
|
|
proxy_temp_file_write_size 32k;
|
|
|
|
proxy_cache_path /var/lib/nginx/cache levels=1:2 keys_zone=backcache:8m max_size=50m;
|
|
proxy_cache_key "$scheme$request_method$host$request_uri$is_args$args";
|
|
proxy_cache_valid 200 302 1440m;
|
|
proxy_cache_valid 404 1m;
|
|
|
|
#upstream backend_hosts {
|
|
# server host1.example.com;
|
|
# server host2.example.com;
|
|
# server host3.example.com;
|
|
#}
|
|
|
|
server {
|
|
listen 80;
|
|
server_name repos.example.com;
|
|
|
|
# location /proxy-me {
|
|
# proxy_pass http://backend_hosts;
|
|
# }
|
|
location /CentOS7/x86_84/os/ {
|
|
proxy_pass http://mirror.centos.org/centos/7/os/x86_64/;
|
|
}
|
|
location /CentOS7/x86_64/updates/ {
|
|
proxy_pass http://mirror.centos.org/centos/7/updates/x86_64/;
|
|
}
|
|
location /CentOS7/x86_64/extras/ {
|
|
proxy_pass http://mirror.centos.org/centos/7/extras/x86_64/;
|
|
}
|
|
location /CentOS7/x86_64/centosplus/ {
|
|
proxy_pass http://mirror.centos.org/centos/7/centosplus/x86_64/;
|
|
}
|
|
location /CentOS7/x86_64/tor/ {
|
|
proxy_pass https://deb.torproject.org/torproject.org/rpm/el/7/x86_64/;
|
|
}
|
|
location /CentOS7/x86_64/epel/ {
|
|
proxy_pass http://download.fedoraproject.org/pub/epel/7/x86_64/;
|
|
}
|
|
location /CentOS7/x86_64/rpmforge/ {
|
|
proxy_pass http://mirrors.ircam.fr/pub/dag/redhat/el7/en/x86_64/rpmforge/;
|
|
}
|
|
location /CentOS7/x86_64/nux-dextop/ {
|
|
proxy_pass http://li.nux.ro/download/nux/dextop/el7/x86_64/;
|
|
}
|
|
location /CentOS7/x86_64/elrepo/ {
|
|
proxy_pass http://elrepo.org/linux/elrepo/el7/x86_64/;
|
|
}
|
|
location /CentOS7/x86_64/elrepo-testing/ {
|
|
proxy_pass http://elrepo.org/linux/testing/el7/x86_64/;
|
|
}
|
|
location /CentOS7/x86_64/elrepo-kernel/ {
|
|
proxy_pass http://elrepo.org/linux/kernel/el7/x86_64/;
|
|
}
|
|
location /CentOS7/x86_64/elrepo-extras/ {
|
|
proxy_pass http://elrepo.org/linux/extras/el7/x86_64/;
|
|
}
|
|
location /CentOS7/x86_64/rbu-dracut-crypt-ssh/ {
|
|
proxy_pass https://copr-be.cloud.fedoraproject.org/results/rbu/dracut-crypt-ssh/epel-7-x86_64/;
|
|
}
|
|
location /CentOS7/x86_64/forensics/ {
|
|
proxy_pass http://www.cert.org/forensics/repository/centos/cert/7/x86_64/;
|
|
}
|
|
location /CentOS7/x86_64/forensics-splunk/ {
|
|
proxy_pass http://www.cert.org/forensics/repository/centos/splunk/7/x86_64/;
|
|
}
|
|
location /CentOS7/x86_64/forensics-sip/ {
|
|
proxy_pass http://www.cert.org/forensics/repository/centos/sip/7/x86_64/;
|
|
}
|
|
location /CentOS7/x86_64/ansible/ {
|
|
proxy_pass http://releases.ansible.com/ansible/rpm/release/epel-7-x86_64/;
|
|
}
|
|
location /CentOS7/x86_64/docker-ce/ {
|
|
proxy_pass https://download.docker.com/linux/centos/7/x86_64/stable/;
|
|
}
|
|
location /CentOS7/armv7hl/os/ {
|
|
proxy_pass http://mirror.centos.org/altarch/7/os/armhfp/;
|
|
}
|
|
location /CentOS7/armv7hl/updates/ {
|
|
proxy_pass http://mirror.centos.org/altarch/7/updates/armhfp/;
|
|
}
|
|
location /CentOS7/armv7hl/extras/ {
|
|
proxy_pass http://mirror.centos.org/altarch/7/extras/armhfp/;
|
|
}
|
|
location /CentOS7/armv7hl/centosplus/ {
|
|
proxy_pass http://mirror.centos.org/altarch/7/centosplus/armhfp/;
|
|
}
|
|
location /CentOS7/armv7hl/kernel-generic/ {
|
|
proxy_pass http://mirror.centos.org/altarch/7/kernel/armhfp/kernel-generic/;
|
|
}
|
|
location /CentOS7/armv7hl/kernel-rpi2/ {
|
|
proxy_pass http://mirror.centos.org/altarch/7/kernel/armhfp/kernel-rpi2/;
|
|
}
|
|
location /CentOS7/armv7hl/epel/ {
|
|
proxy_pass https://armv7.dev.centos.org/repodir/epel-pass-1/;
|
|
}
|
|
location /CentOS7/i386/os/ {
|
|
proxy_pass http://mirror.centos.org/altarch/7/os/i386/;
|
|
}
|
|
location /CentOS7/i386/updates/ {
|
|
proxy_pass http://mirror.centos.org/altarch/7/updates/i386/;
|
|
}
|
|
location /CentOS7/i386/extras/ {
|
|
proxy_pass http://mirror.centos.org/altarch/7/extras/i386/;
|
|
}
|
|
location /CentOS7/i386/centosplus/ {
|
|
proxy_pass http://mirror.centos.org/altarch/7/centosplus/i386/;
|
|
}
|
|
location /CentOS7/armv5tel/os/ {
|
|
proxy_pass http://ftp.redsleeve.org/pub/el7-devel/el7/7/base/;
|
|
}
|
|
location /CentOS7/armv5tel/os/ {
|
|
proxy_pass http://ftp.redsleeve.org/pub/el7-devel/el7/7/base/;
|
|
}
|
|
location /CentOS7/armv5tel/updates/ {
|
|
proxy_pass http://ftp.redsleeve.org/pub/el7-devel/el7/7/updates/;
|
|
}
|
|
location /CentOS7/armv5tel/updates/ {
|
|
proxy_pass http://ftp.redsleeve.org/pub/el7-devel/el7/7/updates/;
|
|
}
|
|
location /CentOS7/armv5tel/extras/ {
|
|
proxy_pass http://ftp.redsleeve.org/pub/el7-devel/el7/7/extra/;
|
|
}
|
|
location /CentOS7/armv5tel/extras/ {
|
|
proxy_pass http://ftp.redsleeve.org/pub/el7-devel/el7/7/extra/;
|
|
}
|
|
location /CentOS7/armv5tel/upstream-extra/ {
|
|
proxy_pass http://ftp.redsleeve.org/pub/el7-devel/el7/7/upstream-extra/;
|
|
}
|
|
location /CentOS7/armv5tel/upstream-extra/ {
|
|
proxy_pass http://ftp.redsleeve.org/pub/el7-devel/el7/7/upstream-extra/;
|
|
}
|
|
location /CentOS7/armv5tel/raspberrypi/ {
|
|
proxy_pass http://ftp.redsleeve.org/pub/el7-devel/el7/raspberrypi/;
|
|
}
|
|
location /CentOS7/armv5tel/raspberrypi/ {
|
|
proxy_pass http://ftp.redsleeve.org/pub/el7-devel/el7/raspberrypi/;
|
|
}
|
|
location /CentOS7/armv5tel/kirkwood/ {
|
|
proxy_pass http://ftp.redsleeve.org/pub/el7-devel/el7/kirkwood/;
|
|
}
|
|
location /CentOS7/armv5tel/kirkwood/ {
|
|
proxy_pass http://ftp.redsleeve.org/pub/el7-devel/el7/kirkwood/;
|
|
}
|
|
location /CentOS7/armv5tel/epel/ {
|
|
proxy_pass http://ftp.redsleeve.org/pub/el7-devel/el7/EPEL-full/;
|
|
}
|
|
location /CentOS7/armv5tel/epel/ {
|
|
proxy_pass http://ftp.redsleeve.org/pub/el7-devel/el7/EPEL-full/;
|
|
}
|
|
}
|
|
|