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; } }