Files
OUCMirror-WebUI/deploy/nginx-preview.conf
T
yaosanqi137 f8cef413d6 feat: add backend, admin console and live monitoring
Integrate tunasync management, SQLite authentication and content settings, real monitoring and per-repository pull speeds. Add Chinese-only announcements and mirror help, editable related links, admin layout updates, deployment tools and tests.
2026-11-01 18:04:01 +08:00

23 lines
675 B
Plaintext

server {
listen 100.69.2.2:8080;
server_name 100.69.2.2;
client_max_body_size 5m;
location /mirrors/ {
alias /data/mirrors/;
autoindex on;
autoindex_exact_size off;
autoindex_localtime on;
add_header X-Content-Type-Options nosniff always;
add_header Content-Security-Policy "sandbox; default-src 'none'; style-src 'unsafe-inline'; img-src 'self' data:" always;
}
location / {
proxy_pass http://127.0.0.1:8081;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_read_timeout 35s;
}
}