r11_urpm-repo/nginx.conf

58 lines
1.4 KiB
Nginx Configuration File
Raw Permalink Normal View History

2025-01-13 22:59:42 +03:00
user nginx;
worker_processes 1;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
include /etc/nginx/conf.d/*.conf;
server {
listen 8080;
server_name localhost;
2025-01-31 22:35:47 +03:00
root /var/www/html/urpm-repo;
2025-01-13 22:59:42 +03:00
location / {
autoindex on;
autoindex_exact_size off;
autoindex_localtime on;
}
location ~ ^/(x86_64|i386|aarch64|riscv64|noarch|src)/ {
2025-01-31 22:35:47 +03:00
autoindex on;
autoindex_exact_size off;
autoindex_localtime on;
}
location ~ ^/(x86_64|i386|aarch64|riscv64|noarch|src)/media_info/ {
2025-01-13 22:59:42 +03:00
autoindex on;
autoindex_exact_size off;
autoindex_localtime on;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}
2025-01-31 22:35:47 +03:00
}