enable ipv6 for repo pool

This commit is contained in:
Louis Abel 2023-10-05 21:31:14 -07:00
parent c75e4c2e0f
commit c136e5c406
Signed by: label
GPG Key ID: 3331F061D1D9990E
1 changed files with 16 additions and 14 deletions

View File

@ -1,5 +1,6 @@
server {
listen 80 default_server backlog=4096;
listen [::]:80 default_server backlog=4096;
server_name _;
root /mnt/repos-production/mirror;
@ -12,15 +13,15 @@
alias /mnt/repos-staging/mirror/pub;
}
location ~* .*(\.manifest|CHECKSUM|COMMUNITY-CHARTER|COMPOSE_ID|Contributors|EULA|LICENSE|\.yaml|\.json|README|fullfile.*|\.repo)$ {
#add_header Content-Type text/plain;
types { } default_type "text/plain; charset=utf-8";
}
#location ~* .*(\.manifest|CHECKSUM|COMMUNITY-CHARTER|COMPOSE_ID|Contributors|EULA|LICENSE|\.yaml|\.json|README|fullfile.*|\.repo)$ {
# #add_header Content-Type text/plain;
# types { } default_type "text/plain; charset=utf-8";
#}
location ~* RPM-GPG-KEY-.*$ {
#location ~* RPM-GPG-KEY-.*$ {
# add_header Content-Type text/plain;
types { } default_type "text/plain; charset=utf-8";
}
# types { } default_type "text/plain; charset=utf-8";
#}
error_page 404 /404.html;
location = /40x.html {
@ -33,6 +34,7 @@
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name _;
root /mnt/repos-production/mirror;
ssl_certificate /etc/pki/tls/certs/dl.rockylinux.org.crt;
@ -48,15 +50,15 @@
alias /mnt/repos-staging/mirror/pub;
}
location ~* .*(\.manifest|CHECKSUM|COMMUNITY-CHARTER|COMPOSE_ID|Contributors|EULA|LICENSE|\.yaml|\.json|README|fullfile.*|\.repo)$ {
#add_header Content-Type text/plain;
types { } default_type "text/plain; charset=utf-8";
}
#location ~* .*(\.manifest|CHECKSUM|COMMUNITY-CHARTER|COMPOSE_ID|Contributors|EULA|LICENSE|\.yaml|\.json|README|fullfile.*|\.repo)$ {
# #add_header Content-Type text/plain;
# types { } default_type "text/plain; charset=utf-8";
#}
location ~* RPM-GPG-KEY-.*$ {
#location ~* RPM-GPG-KEY-.*$ {
# add_header Content-Type text/plain;
types { } default_type "text/plain; charset=utf-8";
}
# types { } default_type "text/plain; charset=utf-8";
#}
error_page 404 /404.html;
location = /40x.html {