mirror of
https://github.com/CyberMind-FR/secubox-deb.git
synced 2026-07-28 21:17:36 +00:00
Some checks are pending
License Headers / check (push) Waiting to run
* docs(spec): secubox-proxypac WPAD/PAC mesh-service routing design (ref #784) * docs(plan): secubox-proxypac 11-task TDD implementation plan (ref #784) * feat(annuaire): optional byte-stable pac descriptor on ServiceOffer (ref #784) * feat(proxypac): PAC template + fail-open directive builder (ref #784) * feat(proxypac): rules.d parsing + precedence compose (ref #784) * feat(proxypac): p2p /services catalog reader → routing rules (ref #784) * feat(proxypac): generator + atomic fail-safe write + CLI (ref #784) * fix(proxypac): shadow file is <pac>.shadow not <base>.shadow (ref #784) * feat(proxypac): WebUI API override CRUD + candidates + audit (ref #784) * fix(proxypac): regen honors RULES_DIR + reject whitespace in override host (ref #784) * feat(proxypac): nginx PAC/WPAD serving (LAN-only) + seed rule (ref #784) * fix(proxypac): gate /proxy.pac to LAN/mesh (never public) (ref #784) * feat(proxypac): regen path+timer units + DHCP 252 WPAD advertise (ref #784) * feat(proxypac): WebUI override panel + menu entry (ref #784) * fix(proxypac): correct menu schema (name/category) + escape panel output (ref #784) * feat(proxypac): debian packaging (ref #784) * fix(proxypac): drop duplicate debian/compat + correct secubox user creation (ref #784) * docs(proxypac): README + deploy notes (ref #784) * fix(proxypac): apply final-review follow-ups (ref #784) - compose: overrides now last-file-wins per host, so an operator's later 50-webui.rules override beats a shipped 00-onion.rules seed for the same glob (explicit policy > defaults); cross-source override>service>toolbox unchanged. New test test_compose_override_last_file_wins. - packaging: declare Depends: secubox-hub — the /proxy.pac allow/deny gate matches $remote_addr, which behind HAProxy is 127.0.0.1 unless secubox-hub's real_ip (X-Forwarded-For) rewrite is loaded; without it the PAC would be world-readable. nginx/proxypac.conf comments the dependency; test asserts it in control. - README: document last-file-wins precedence + the real_ip/secubox-hub dependency. --------- Co-authored-by: CyberMind-FR <gandalf@Gk2.net>
21 lines
1.1 KiB
Makefile
21 lines
1.1 KiB
Makefile
#!/usr/bin/make -f
|
|
%:
|
|
dh $@
|
|
|
|
override_dh_auto_install:
|
|
install -d debian/secubox-proxypac/usr/lib/secubox/proxypac
|
|
cp -r proxypac api debian/secubox-proxypac/usr/lib/secubox/proxypac/
|
|
install -D -m 755 sbin/proxypac-gen debian/secubox-proxypac/usr/sbin/proxypac-gen
|
|
install -d debian/secubox-proxypac/etc/nginx/secubox.d
|
|
cp nginx/proxypac.conf debian/secubox-proxypac/etc/nginx/secubox.d/
|
|
install -d debian/secubox-proxypac/etc/nginx/sites-available
|
|
cp nginx/wpad-vhost.conf debian/secubox-proxypac/etc/nginx/sites-available/
|
|
install -d debian/secubox-proxypac/usr/lib/systemd/system
|
|
cp systemd/secubox-proxypac.service systemd/secubox-proxypac-gen.service systemd/secubox-proxypac-gen.path systemd/secubox-proxypac-gen.timer debian/secubox-proxypac/usr/lib/systemd/system/
|
|
install -d debian/secubox-proxypac/etc/secubox/proxypac/rules.d
|
|
cp conf/rules.d/*.rules debian/secubox-proxypac/etc/secubox/proxypac/rules.d/
|
|
install -d debian/secubox-proxypac/usr/share/secubox/www
|
|
cp -r www/. debian/secubox-proxypac/usr/share/secubox/www/
|
|
install -d debian/secubox-proxypac/usr/share/secubox/menu.d
|
|
cp menu.d/*.json debian/secubox-proxypac/usr/share/secubox/menu.d/
|