2023-08-28 01:17:49 +00:00
|
|
|
server {
|
|
|
|
listen 80 default_server backlog=4096;
|
|
|
|
server_name _;
|
|
|
|
root /mnt/repos-production/mirror;
|
|
|
|
|
|
|
|
location / {
|
|
|
|
autoindex on;
|
|
|
|
}
|
|
|
|
|
|
|
|
location /stg {
|
|
|
|
autoindex on;
|
|
|
|
alias /mnt/repos-staging/mirror/pub;
|
|
|
|
}
|
|
|
|
|
2023-08-31 20:44:12 +00:00
|
|
|
location ~* .*(\.manifest|CHECKSUM|COMMUNITY-CHARTER|COMPOSE_ID|Contributors|EULA|LICENSE|\.yaml|\.json|README|fullfile.*|\.repo)$ {
|
2023-08-28 01:17:49 +00:00
|
|
|
#add_header Content-Type text/plain;
|
|
|
|
types { } default_type "text/plain; charset=utf-8";
|
|
|
|
}
|
|
|
|
|
|
|
|
location ~* RPM-GPG-KEY-.*$ {
|
|
|
|
# add_header Content-Type text/plain;
|
|
|
|
types { } default_type "text/plain; charset=utf-8";
|
|
|
|
}
|
|
|
|
|
|
|
|
error_page 404 /404.html;
|
|
|
|
location = /40x.html {
|
|
|
|
}
|
|
|
|
|
|
|
|
error_page 500 502 503 504 /50x.html;
|
|
|
|
location = /50x.html {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
server {
|
|
|
|
listen 443 ssl;
|
|
|
|
server_name _;
|
|
|
|
root /mnt/repos-production/mirror;
|
|
|
|
ssl_certificate /etc/pki/tls/certs/dl.rockylinux.org.crt;
|
|
|
|
ssl_certificate_key /etc/pki/tls/private/dl.rockylinux.org.key;
|
|
|
|
ssl_ciphers HIGH:!aNULL:!MD5;
|
|
|
|
|
|
|
|
location / {
|
|
|
|
autoindex on;
|
|
|
|
}
|
|
|
|
|
|
|
|
location /stg {
|
|
|
|
autoindex on;
|
|
|
|
alias /mnt/repos-staging/mirror/pub;
|
|
|
|
}
|
|
|
|
|
2023-08-31 20:44:12 +00:00
|
|
|
location ~* .*(\.manifest|CHECKSUM|COMMUNITY-CHARTER|COMPOSE_ID|Contributors|EULA|LICENSE|\.yaml|\.json|README|fullfile.*|\.repo)$ {
|
2023-08-28 01:17:49 +00:00
|
|
|
#add_header Content-Type text/plain;
|
|
|
|
types { } default_type "text/plain; charset=utf-8";
|
|
|
|
}
|
|
|
|
|
|
|
|
location ~* RPM-GPG-KEY-.*$ {
|
|
|
|
# add_header Content-Type text/plain;
|
|
|
|
types { } default_type "text/plain; charset=utf-8";
|
|
|
|
}
|
|
|
|
|
|
|
|
error_page 404 /404.html;
|
|
|
|
location = /40x.html {
|
|
|
|
}
|
|
|
|
|
|
|
|
error_page 500 502 503 504 /50x.html;
|
|
|
|
location = /50x.html {
|
|
|
|
}
|
|
|
|
}
|