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

84 lines
2.6 KiB
Plaintext
Raw Normal View History

2023-10-11 01:49:38 +00:00
# Managed by Ansible
2023-08-28 01:17:49 +00:00
server {
listen 80 default_server backlog=4096;
2023-10-06 04:31:14 +00:00
listen [::]:80 default_server backlog=4096;
2023-08-28 01:17:49 +00:00
server_name _;
root /mnt/repos-production/mirror;
# Fastly sets the client IP in this header (and it cannot be overriden by user)
real_ip_header Fastly-Client-IP;
real_ip_recursive on;
set_real_ip_from 10.32.0.0/16;
set_real_ip_from ::/0;
2023-08-28 01:17:49 +00:00
location / {
autoindex on;
}
location /stg {
autoindex on;
alias /mnt/repos-staging/mirror/pub;
}
2023-10-06 04:31:14 +00:00
#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";
#}
2023-08-28 01:17:49 +00:00
2023-10-06 04:31:14 +00:00
#location ~* RPM-GPG-KEY-.*$ {
2023-08-28 01:17:49 +00:00
# add_header Content-Type text/plain;
2023-10-06 04:31:14 +00:00
# types { } default_type "text/plain; charset=utf-8";
#}
2023-08-28 01:17:49 +00:00
error_page 404 /404.html;
location = /40x.html {
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
}
}
server {
listen 443 ssl;
2023-10-06 04:31:14 +00:00
listen [::]:443 ssl;
2023-08-28 01:17:49 +00:00
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;
# Fastly sets the client IP in this header (and it cannot be overriden by user)
real_ip_header Fastly-Client-IP;
real_ip_recursive on;
set_real_ip_from 10.32.0.0/16;
set_real_ip_from ::/0;
2023-08-28 01:17:49 +00:00
location / {
autoindex on;
}
location /stg {
autoindex on;
alias /mnt/repos-staging/mirror/pub;
}
2023-10-06 04:31:14 +00:00
#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";
#}
2023-08-28 01:17:49 +00:00
2023-10-06 04:31:14 +00:00
#location ~* RPM-GPG-KEY-.*$ {
2023-08-28 01:17:49 +00:00
# add_header Content-Type text/plain;
2023-10-06 04:31:14 +00:00
# types { } default_type "text/plain; charset=utf-8";
#}
2023-08-28 01:17:49 +00:00
error_page 404 /404.html;
location = /40x.html {
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
}
}