secubox-openwrt/package/secubox/luci-app-cdn-cache/root/usr/share/rpcd/acl.d/luci-app-cdn-cache.json
CyberMind-FR e548d210b7 fix: CDN cache ACL permissions and Tor Shield IP detection
CDN Cache:
- Add file read permissions for cache, logs, and SSL dirs
- Add new RPCD methods to ACL (get_ca_cert, set_ssl_bump)

Tor Shield:
- Create tor-ip-update.sh for caching exit/real IPs
- Use --socks5-hostname for DNS through Tor
- Add cron job for periodic IP updates

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 19:46:28 +01:00

23 lines
741 B
JSON

{
"luci-app-cdn-cache": {
"description": "Grant access to CDN Cache Dashboard",
"read": {
"file": {
"/var/cache/cdn-squid/*": ["list", "read"],
"/var/log/cdn-cache/*": ["list", "read"],
"/etc/squid/ssl/*": ["list", "read"]
},
"ubus": {
"luci.cdn-cache": ["status", "stats", "cache_list", "top_domains", "bandwidth_savings", "hit_ratio", "cache_size", "policies", "exclusions", "logs", "get_ca_cert"]
},
"uci": ["cdn-cache"]
},
"write": {
"ubus": {
"luci.cdn-cache": ["set_enabled", "purge_cache", "purge_domain", "purge_expired", "preload_url", "add_policy", "remove_policy", "add_exclusion", "remove_exclusion", "clear_stats", "restart", "set_ssl_bump"]
},
"uci": ["cdn-cache"]
}
}
}