diff --git a/templates/etc/nginx/conf.d/repopool-http-production.conf.j2 b/templates/etc/nginx/conf.d/repopool-http-production.conf.j2 index 61337f0..56021fe 100644 --- a/templates/etc/nginx/conf.d/repopool-http-production.conf.j2 +++ b/templates/etc/nginx/conf.d/repopool-http-production.conf.j2 @@ -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 {