mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-05-06 11:09:18 +02:00
fix: admin CSP allow inline scripts
script-src 'self' 'unsafe-inline' added to admin Content-Security-Policy. default-src 'self' was blocking OverType editor init block and the dev live-reload poller. Admin section is auth-gated so unsafe-inline is acceptable.
This commit is contained in:
@@ -84,15 +84,21 @@ else
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# ── Step 4: Reload nginx ─────────────────────────────────────────────────────
|
||||
printf "\n"
|
||||
echo "📋 Step 4: Reloading nginx..."
|
||||
echo "------------------------------"
|
||||
|
||||
systemctl reload nginx
|
||||
ok "Nginx reloaded"
|
||||
|
||||
# ── Done ──────────────────────────────────────────────────────────────────────
|
||||
printf "\n"
|
||||
ok "Permissions fixed"
|
||||
ok "Nginx config installed"
|
||||
ok "Configuration validated"
|
||||
printf "\n"
|
||||
warn "Nginx has not been reloaded yet."
|
||||
printf "Run: sudo systemctl reload nginx\n\n"
|
||||
printf "After reload, verify:\n"
|
||||
printf " • https://posterg.erg.be/\n"
|
||||
printf " • https://posterg.erg.be/admin/\n"
|
||||
printf " • https://posterg.erg.be/storage/posterg.db (should 403/404)\n"
|
||||
ok "Nginx reloaded"
|
||||
printf "\nVerify:\n"
|
||||
printf " https://posterg.erg.be/\n"
|
||||
printf " https://posterg.erg.be/admin/\n"
|
||||
printf " https://posterg.erg.be/storage/posterg.db (should 403/404)\n"
|
||||
|
||||
Reference in New Issue
Block a user