enable ipv6 for repo pool
This commit is contained in:
parent
c75e4c2e0f
commit
c136e5c406
@ -1,5 +1,6 @@
|
|||||||
server {
|
server {
|
||||||
listen 80 default_server backlog=4096;
|
listen 80 default_server backlog=4096;
|
||||||
|
listen [::]:80 default_server backlog=4096;
|
||||||
server_name _;
|
server_name _;
|
||||||
root /mnt/repos-production/mirror;
|
root /mnt/repos-production/mirror;
|
||||||
|
|
||||||
@ -12,15 +13,15 @@
|
|||||||
alias /mnt/repos-staging/mirror/pub;
|
alias /mnt/repos-staging/mirror/pub;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* .*(\.manifest|CHECKSUM|COMMUNITY-CHARTER|COMPOSE_ID|Contributors|EULA|LICENSE|\.yaml|\.json|README|fullfile.*|\.repo)$ {
|
#location ~* .*(\.manifest|CHECKSUM|COMMUNITY-CHARTER|COMPOSE_ID|Contributors|EULA|LICENSE|\.yaml|\.json|README|fullfile.*|\.repo)$ {
|
||||||
#add_header Content-Type text/plain;
|
# #add_header Content-Type text/plain;
|
||||||
types { } default_type "text/plain; charset=utf-8";
|
# types { } default_type "text/plain; charset=utf-8";
|
||||||
}
|
#}
|
||||||
|
|
||||||
location ~* RPM-GPG-KEY-.*$ {
|
#location ~* RPM-GPG-KEY-.*$ {
|
||||||
# add_header Content-Type text/plain;
|
# 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;
|
error_page 404 /404.html;
|
||||||
location = /40x.html {
|
location = /40x.html {
|
||||||
@ -33,6 +34,7 @@
|
|||||||
|
|
||||||
server {
|
server {
|
||||||
listen 443 ssl;
|
listen 443 ssl;
|
||||||
|
listen [::]:443 ssl;
|
||||||
server_name _;
|
server_name _;
|
||||||
root /mnt/repos-production/mirror;
|
root /mnt/repos-production/mirror;
|
||||||
ssl_certificate /etc/pki/tls/certs/dl.rockylinux.org.crt;
|
ssl_certificate /etc/pki/tls/certs/dl.rockylinux.org.crt;
|
||||||
@ -48,15 +50,15 @@
|
|||||||
alias /mnt/repos-staging/mirror/pub;
|
alias /mnt/repos-staging/mirror/pub;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* .*(\.manifest|CHECKSUM|COMMUNITY-CHARTER|COMPOSE_ID|Contributors|EULA|LICENSE|\.yaml|\.json|README|fullfile.*|\.repo)$ {
|
#location ~* .*(\.manifest|CHECKSUM|COMMUNITY-CHARTER|COMPOSE_ID|Contributors|EULA|LICENSE|\.yaml|\.json|README|fullfile.*|\.repo)$ {
|
||||||
#add_header Content-Type text/plain;
|
# #add_header Content-Type text/plain;
|
||||||
types { } default_type "text/plain; charset=utf-8";
|
# types { } default_type "text/plain; charset=utf-8";
|
||||||
}
|
#}
|
||||||
|
|
||||||
location ~* RPM-GPG-KEY-.*$ {
|
#location ~* RPM-GPG-KEY-.*$ {
|
||||||
# add_header Content-Type text/plain;
|
# 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;
|
error_page 404 /404.html;
|
||||||
location = /40x.html {
|
location = /40x.html {
|
||||||
|
Loading…
Reference in New Issue
Block a user