ansible-ops-management/templates/etc/nginx/conf.d/repopool-http-production.conf.j2

69 lines
2.0 KiB
Plaintext
Raw Normal View History

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;
}
location ~* .*(\.manifest|CHECKSUM|COMMUNITY-CHARTER|COMPOSE_ID|Contributors|EULA|LICENSE|\.yaml|\.json|README|fullfile.*)$ {
#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;
}
location ~* .*(\.manifest|CHECKSUM|COMMUNITY-CHARTER|COMPOSE_ID|Contributors|EULA|LICENSE|\.yaml|\.json|README|fullfile.*)$ {
#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 {
}
}